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

Parameters

string|null $get
string|null $set

Return Value

PropertyLike

at line 47
string|null getVisibility(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

string|null

at line 54
PropertyLike setPublic(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

PropertyLike

at line 62
bool isPublic(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

bool

at line 69
PropertyLike setProtected(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

PropertyLike

at line 77
bool isProtected(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

bool

at line 84
PropertyLike setPrivate(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

PropertyLike

at line 92
bool isPrivate(string $mode = PropertyAccessMode::Get)

No description

Parameters

string $mode

Return Value

bool

at line 98
PropertyLike setReadOnly(bool $state = true)

No description

Parameters

bool $state

Return Value

PropertyLike

at line 105
bool isReadOnly()

No description

Return Value

bool

at line 115
PropertyLike setHooks(array $hooks)

Replaces all hooks.

Parameters

array $hooks

Return Value

PropertyLike

at line 124
array getHooks()

No description

Return Value

array

at line 131
PropertyHook addHook(string $type, string $shortBody = '')

No description

Parameters

string $type
string $shortBody

Return Value

PropertyHook

at line 139
PropertyHook|null getHook(string $type)

No description

Parameters

string $type

Return Value

PropertyHook|null

at line 146
bool hasHook(string $type)

No description

Parameters

string $type

Return Value

bool