trait PropertyLike

internal  
 

Methods

setVisibility(Visibility|string|null $get, Visibility|string|null $set = null)

No description

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

No description

setPublic(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

bool
isPublic(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

setProtected(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

bool
isProtected(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

setPrivate(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

bool
isPrivate(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

setFinal(bool $state = true)

No description

bool
isFinal()

No description

setReadOnly(bool $state = true)

No description

bool
isReadOnly()

No description

setHooks(array $hooks)

Replaces all hooks.

array
getHooks()

No description

addHook(PropertyHookType|string $type, string $shortBody = '')

No description

PropertyHook|null
getHook(PropertyHookType|string $type)

No description

bool
hasHook(PropertyHookType|string $type)

No description

Details

at line 35
PropertyLike setVisibility(Visibility|string|null $get, Visibility|string|null $set = null)

No description

Parameters

Visibility|string|null $get
Visibility|string|null $set

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

string|null

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

bool

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

bool

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

bool

at line 104
PropertyLike setFinal(bool $state = true)

No description

Parameters

bool $state

Return Value

PropertyLike

at line 111
bool isFinal()

No description

Return Value

bool

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

No description

Parameters

bool $state

Return Value

PropertyLike

at line 124
bool isReadOnly()

No description

Return Value

bool

at line 134
PropertyLike setHooks(array $hooks)

Replaces all hooks.

Parameters

array $hooks

Return Value

PropertyLike

at line 143
array getHooks()

No description

Return Value

array

at line 150
PropertyHook addHook(PropertyHookType|string $type, string $shortBody = '')

No description

Parameters

PropertyHookType|string $type
string $shortBody

Return Value

PropertyHook

at line 159
PropertyHook|null getHook(PropertyHookType|string $type)

No description

Parameters

PropertyHookType|string $type

Return Value

PropertyHook|null

at line 167
bool hasHook(PropertyHookType|string $type)

No description

Parameters

PropertyHookType|string $type

Return Value

bool