Guides

PropertyHook
in package
implements AttributeContainer, MetaDataContainer uses MetadataContainer, HasAttributes

FinalYes

Table of Contents

Interfaces

AttributeContainer
MetaDataContainer

Properties

$arguments  : array<string|int, Argument>
$attributes  : array<string|int, Attribute>
$docBlock  : DocBlock|null
$endLocation  : Location
$final  : bool
$location  : Location
$name  : string
$visibility  : Visibility

Methods

__construct()  : mixed
addArgument()  : void
Add new argument to this hook.
addAttribute()  : void
getArguments()  : array<string|int, Argument>
Returns the arguments of this hook.
getAttributes()  : array<string|int, Attribute>
getDocBlock()  : DocBlock|null
Returns the DocBlock of this method if available.
getEndLocation()  : Location
getLocation()  : Location
getName()  : string
Returns the name of this hook.
getVisibility()  : Visibility|null
Returns the Visibility of this hook.
isFinal()  : bool
Returns true when this hook is final. Otherwise, returns false.

Properties

$docBlock read-only

private DocBlock|null $docBlock = null

Methods

__construct()

public __construct(string $name, Visibility $visibility[, DocBlock|null $docBlock = null ][, bool $final = false ][, Location|null $location = null ][, Location|null $endLocation = null ]) : mixed
Parameters
$name : string
$visibility : Visibility
$docBlock : DocBlock|null = null
$final : bool = false
$location : Location|null = null
$endLocation : Location|null = null

getArguments()

Returns the arguments of this hook.

public getArguments() : array<string|int, Argument>
Return values
array<string|int, Argument>

getDocBlock()

Returns the DocBlock of this method if available.

public getDocBlock() : DocBlock|null
Return values
DocBlock|null

getEndLocation()

public getEndLocation() : Location
Return values
Location

getLocation()

public getLocation() : Location
Return values
Location

getName()

Returns the name of this hook.

public getName() : string
Return values
string

isFinal()

Returns true when this hook is final. Otherwise, returns false.

public isFinal() : bool
Return values
bool

        
On this page

Search results