PropertyLike
trait PropertyLike
internal |
Methods
setVisibility(string|null $get, string|null $set = null)
No description
string|null
getVisibility(string $mode = PropertyAccessMode::Get)
No description
setPublic(string $mode = PropertyAccessMode::Get)
No description
bool
isPublic(string $mode = PropertyAccessMode::Get)
No description
setProtected(string $mode = PropertyAccessMode::Get)
No description
bool
isProtected(string $mode = PropertyAccessMode::Get)
No description
setPrivate(string $mode = PropertyAccessMode::Get)
No description
bool
isPrivate(string $mode = PropertyAccessMode::Get)
No description
setReadOnly(bool $state = true)
No description
bool
isReadOnly()
No description
setHooks(array $hooks)
Replaces all hooks.
array
getHooks()
No description
addHook(string $type, string $shortBody = '')
No description
PropertyHook|null
getHook(string $type)
No description
bool
hasHook(string $type)
No description
Details
at line 36
PropertyLike
setVisibility(string|null $get, string|null $set = null)
No description
at line 47
string|null
getVisibility(string $mode = PropertyAccessMode::Get)
No description
at line 54
PropertyLike
setPublic(string $mode = PropertyAccessMode::Get)
No description
at line 62
bool
isPublic(string $mode = PropertyAccessMode::Get)
No description
at line 69
PropertyLike
setProtected(string $mode = PropertyAccessMode::Get)
No description
at line 77
bool
isProtected(string $mode = PropertyAccessMode::Get)
No description
at line 84
PropertyLike
setPrivate(string $mode = PropertyAccessMode::Get)
No description
at line 92
bool
isPrivate(string $mode = PropertyAccessMode::Get)
No description
at line 98
PropertyLike
setReadOnly(bool $state = true)
No description
at line 105
bool
isReadOnly()
No description
at line 115
PropertyLike
setHooks(array $hooks)
Replaces all hooks.
at line 124
array
getHooks()
No description
at line 131
PropertyHook
addHook(string $type, string $shortBody = '')
No description
at line 139
PropertyHook|null
getHook(string $type)
No description
at line 146
bool
hasHook(string $type)
No description