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

Parameters

string|null $get
string|null $set

Return Value

PropertyLike

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

No description

Parameters

string $mode

Return Value

string|null

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

No description

Parameters

string $mode

Return Value

PropertyLike

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

No description

Parameters

string $mode

Return Value

bool

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

No description

Parameters

string $mode

Return Value

PropertyLike

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

No description

Parameters

string $mode

Return Value

bool

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

No description

Parameters

string $mode

Return Value

PropertyLike

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

No description

Parameters

string $mode

Return Value

bool

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

No description

Parameters

bool $state

Return Value

PropertyLike

at line 104
bool isReadOnly()

No description

Return Value

bool

at line 114
PropertyLike setHooks(array $hooks)

Replaces all hooks.

Parameters

array $hooks

Return Value

PropertyLike

at line 123
array getHooks()

No description

Return Value

array

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

No description

Parameters

string $type
string $shortBody

Return Value

PropertyHook

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

No description

Parameters

string $type

Return Value

PropertyHook|null

at line 145
bool hasHook(string $type)

No description

Parameters

string $type

Return Value

bool