PropertyHook
final class PropertyHook
Definition of a property hook.
Methods
Sets the hook body. When $short is true, uses arrow-function style (=> expression).
No description
Returns true if the hook uses the arrow function style (=> expression), not a block body.
No description
No description
No description
No description
No description
No description
Adds a parameter. If it already exists, it overwrites it.
No description
No description
Details
at line 31
PropertyHook
setBody(string $code, array|null $args = null, bool $short = false)
Sets the hook body. When $short is true, uses arrow-function style (=> expression).
Optionally accepts Dumper-style placeholders resolved against $args.
at line 46
string
getBody()
No description
at line 55
bool
isShort()
Returns true if the hook uses the arrow function style (=> expression), not a block body.
at line 61
PropertyHook
setFinal(bool $state = true)
No description
at line 68
bool
isFinal()
No description
at line 74
PropertyHook
setAbstract(bool $state = true)
No description
at line 81
bool
isAbstract()
No description
at line 91
PropertyHook
setParameters(array $val)
| internal |
No description
at line 107
array
getParameters()
| internal |
No description
at line 117
Parameter
addParameter(string $name)
Adds a parameter. If it already exists, it overwrites it.
at line 123
PropertyHook
setReturnReference(bool $state = true)
No description
at line 130
bool
getReturnReference()
No description