Documentation

AttributeHandler

Table of Contents

TARGET_CLASS  = 'class'
TARGET_METHOD  = 'method'
TARGET_PROPERTY  = 'property'
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

Constants

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, ReflectionClass|ReflectionProperty|ReflectionMethod $subject, object $attribute) : void
Parameters
$className : string

The name of the class

$subject : ReflectionClass|ReflectionProperty|ReflectionMethod

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