Phly\Conduit\Route::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $path, callable $handler )
$path string
$handler callable
    public function __construct($path, callable $handler)
    {
        if (!is_string($path)) {
            throw new InvalidArgumentException('Path must be a string');
        }
        $this->path = $path;
        $this->handler = $handler;
    }