Свойство | Тип | Описание | |
---|---|---|---|
$allowedMethods | array | Allowed methods | |
$controller | callable | Callable assigned to this route | |
$methods | array | Methods this route responds to | |
$name | null | string | Name of this route (if any) | |
$route | Zend\Mvc\Router\RouteInterface | Route object |
Метод | Описание | |
---|---|---|
__construct ( Zend\Mvc\Router\RouteInterface $route, callable $controller ) | Constructor | |
allowMethod ( string $method ) : void | Add an HTTP method you will allow | |
controller ( ) : callable | Retrieve controller assigned to this route | |
name ( null | string $name = null ) : |
Retrieve and/or set the route name | |
respondsTo ( null | string $method = null ) : array | boolean | Does this route respond to the given method? | |
route ( ) : Zend\Mvc\Router\RouteInterface | Get the actual route interface | |
via ( string | array $method ) : |
Assign one or more methods this route will respond to |
public __construct ( Zend\Mvc\Router\RouteInterface $route, callable $controller ) | ||
$route | Zend\Mvc\Router\RouteInterface | |
$controller | callable |
public static allowMethod ( string $method ) : void | ||
$method | string | |
Результат | void |
public controller ( ) : callable | ||
Результат | callable |
public route ( ) : Zend\Mvc\Router\RouteInterface | ||
Результат | Zend\Mvc\Router\RouteInterface |
protected static array $allowedMethods | ||
Результат | array |
protected callable $controller | ||
Результат | callable |
protected array $methods | ||
Результат | array |