RouteAttributeHandler
in package
implements
AttributeHandler
Handles #[Route] attributes
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $router : Router
- __construct() : mixed
- attributeClass() : string
- Returns the attribute class name this handler processes
- handle() : void
- Handles an attribute found on a class, property or method
- targets() : array<string|int, mixed>
- Returns the targets this handler processes
Properties
$router
private
Router
$router
Methods
__construct()
public
__construct(Router $router) : mixed
Parameters
- $router : Router
Return values
mixed —attributeClass()
Returns the attribute class name this handler processes
public
attributeClass() : string
Return values
string —handle()
Handles an attribute found on a class, property or method
public
handle(string $className, mixed $subject, object $attribute) : void
Parameters
- $className : string
-
The name of the class
- $subject : mixed
-
The reflected class, property or method
- $attribute : object
-
The attribute instance
Return values
void —targets()
Returns the targets this handler processes
public
targets() : array<string|int, mixed>
Can be: TARGET_CLASS, TARGET_PROPERTY, TARGET_METHOD