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 33
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 43
string|null getVisibility(PropertyAccessMode|string $mode = PropertyAccessMode::Get)

No description

Parameters

PropertyAccessMode|string $mode

Return Value

string|null

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

bool

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

bool

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

PropertyLike

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

No description

Parameters

PropertyAccessMode|string $mode

Return Value

bool

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

No description

Parameters

bool $state

Return Value

PropertyLike

at line 102
bool isFinal()

No description

Return Value

bool

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

No description

Parameters

bool $state

Return Value

PropertyLike

at line 115
bool isReadOnly()

No description

Return Value

bool

at line 125
PropertyLike setHooks(array $hooks)

Replaces all hooks.

Parameters

array $hooks

Return Value

PropertyLike

at line 134
array getHooks()

No description

Return Value

array

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

No description

Parameters

PropertyHookType|string $type
string $shortBody

Return Value

PropertyHook

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

No description

Parameters

PropertyHookType|string $type

Return Value

PropertyHook|null

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

No description

Parameters

PropertyHookType|string $type

Return Value

bool