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 35
PropertyLike
setVisibility(string|null $get, string|null $set = null)
No description
at line 46
string|null
getVisibility(string $mode = PropertyAccessMode::Get)
No description
at line 53
PropertyLike
setPublic(string $mode = PropertyAccessMode::Get)
No description
at line 61
bool
isPublic(string $mode = PropertyAccessMode::Get)
No description
at line 68
PropertyLike
setProtected(string $mode = PropertyAccessMode::Get)
No description
at line 76
bool
isProtected(string $mode = PropertyAccessMode::Get)
No description
at line 83
PropertyLike
setPrivate(string $mode = PropertyAccessMode::Get)
No description
at line 91
bool
isPrivate(string $mode = PropertyAccessMode::Get)
No description
at line 97
PropertyLike
setReadOnly(bool $state = true)
No description
at line 104
bool
isReadOnly()
No description
at line 114
PropertyLike
setHooks(array $hooks)
Replaces all hooks.
at line 123
array
getHooks()
No description
at line 130
PropertyHook
addHook(string $type, string $shortBody = '')
No description
at line 138
PropertyHook|null
getHook(string $type)
No description
at line 145
bool
hasHook(string $type)
No description