Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 | |
return | void |
public controller ( ) : callable | ||
return | callable |
public route ( ) : Zend\Mvc\Router\RouteInterface | ||
return | Zend\Mvc\Router\RouteInterface |
protected static array $allowedMethods | ||
return | array |
protected callable $controller | ||
return | callable |