Свойство | Type | Description | |
---|---|---|---|
$description | string | ||
$matches | null | array | ||
$name | string | ||
$optionsDescription | array | ||
$route | string | ||
$shortDescription | string |
Méthode | Description | |
---|---|---|
__construct ( string $name, string $route, array $constraints = [], array $defaults = [], array $aliases = [], array $filters = null, array $validators = null ) | ||
getDescription ( ) : string | ||
getMatchedParam ( string $param, mixed $default = null ) : mixed | Retrieve a matched parameter | |
getMatches ( ) : null | array | ||
getName ( ) : string | ||
getOptionsDescription ( ) : array | ||
getRoute ( ) : string | ||
getShortDescription ( ) : string | ||
isMatched ( ) : boolean | ||
match ( array $params ) : array | null | Override match() | |
matchedParam ( string $param ) : boolean | Was the parameter matched? | |
setDescription ( string $description ) : self | ||
setOptionsDescription ( array $descriptions ) : self | ||
setShortDescription ( string $description ) : self |
public __construct ( string $name, string $route, array $constraints = [], array $defaults = [], array $aliases = [], array $filters = null, array $validators = null ) | ||
$name | string | |
$route | string | Route string to match |
$constraints | array | Argument constraints (optional) |
$defaults | array | Argument default values (optional) |
$aliases | array | |
$filters | array | Filters to use for specific arguments (optional) |
$validators | array | Filters to use for specific arguments (optional) |
public matchedParam ( string $param ) : boolean | ||
$param | string | |
Résultat | boolean |
public setDescription ( string $description ) : self | ||
$description | string | |
Résultat | self |
public setOptionsDescription ( array $descriptions ) : self | ||
$descriptions | array | |
Résultat | self |
public setShortDescription ( string $description ) : self | ||
$description | string | |
Résultat | self |