Documentation

RouteAttributeHandler
in package
implements AttributeHandler

Handles #[Route] attributes

Tags
see
AttributeHandler

Interfaces, Classes, Traits and Enums

AttributeHandler

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

Methods

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

Return values
array<string|int, mixed>

Search results