final class PropertyHook

Definition of a property hook.

Methods

setBody(string $code, array|null $args = null, bool $short = false)

No description

string
getBody()

No description

bool
isShort()

No description

setFinal(bool $state = true)

No description

bool
isFinal()

No description

setAbstract(bool $state = true)

No description

bool
isAbstract()

No description

setParameters(array $val)

No description

array
getParameters()

No description

addParameter(string $name)

Adds a parameter. If it already exists, it overwrites it.

setReturnReference(bool $state = true)

No description

bool
getReturnReference()

No description

Details

at line 27
PropertyHook setBody(string $code, array|null $args = null, bool $short = false)

No description

Parameters

string $code
array|null $args
bool $short

Return Value

PropertyHook

at line 42
string getBody()

No description

Return Value

string

at line 48
bool isShort()

No description

Return Value

bool

at line 54
PropertyHook setFinal(bool $state = true)

No description

Parameters

bool $state

Return Value

PropertyHook

at line 61
bool isFinal()

No description

Return Value

bool

at line 67
PropertyHook setAbstract(bool $state = true)

No description

Parameters

bool $state

Return Value

PropertyHook

at line 74
bool isAbstract()

No description

Return Value

bool

at line 84
PropertyHook setParameters(array $val)

internal  
 

No description

Parameters

array $val

Return Value

PropertyHook

at line 100
array getParameters()

internal  
 

No description

Return Value

array

at line 110
Parameter addParameter(string $name)

Adds a parameter. If it already exists, it overwrites it.

Parameters

string $name

without $

Return Value

Parameter

at line 116
PropertyHook setReturnReference(bool $state = true)

No description

Parameters

bool $state

Return Value

PropertyHook

at line 123
bool getReturnReference()

No description

Return Value

bool

Traits