Method | Description | |
---|---|---|
__construct ( string $name, array $attributes = [] ) | Base constructor. | |
addAttribute ( string $name, string $value ) | Adds an attribute to the parameter. | |
getAttribute ( string $name, null | mixed $default = null ) : string | Returns the attribute value. | |
getAttributes ( ) : array | Returns all the attributes. | |
hasAttribute ( string $name ) : boolean | Checks if current option contains the given attribute. |
Method | Description | |
---|---|---|
sanitizePattern ( string $name, string $pattern ) : string | Sanitizes the given pattern. |
public __construct ( string $name, array $attributes = [] ) | ||
$name | string | Name of the route parameter. |
$attributes | array | An array of attributes that are going to be attached to the parameter. |
public addAttribute ( string $name, string $value ) | ||
$name | string | Name of the attribute. |
$value | string | Value of the attribute. |
public getAttributes ( ) : array | ||
return | array |
public hasAttribute ( string $name ) : boolean | ||
$name | string | Attribute name. |
return | boolean |