PublicPropertyDeprecationTrait

This trait has no public properties by default, ensure to add a $deprecatedPublicProperties to your class when using this trait.

Table of Contents

Methods

__get()  : mixed
Gets the value of the property of the given name if tagged.
__isset()  : bool
Checks if the property of the given name is set.
__set()  : mixed
Sets the property of the given name if tagged.
__unset()  : mixed
Unsets the property of the given name if tagged.

Methods

__get()

Gets the value of the property of the given name if tagged.

public __get(string $propertyName) : mixed

The evaluation is done in the assumption that this method is never reached for a public property.

Parameters
$propertyName : string

__isset()

Checks if the property of the given name is set.

public __isset(string $propertyName) : bool

Unmarked protected properties must return false as usual. Marked properties are evaluated by isset().

This method is not called for public properties.

Parameters
$propertyName : string
Return values
bool

__set()

Sets the property of the given name if tagged.

public __set(string $propertyName, mixed $propertyValue) : mixed

Additionally it's allowed to set unknown properties.

The evaluation is done in the assumption that this method is never reached for a public property.

Parameters
$propertyName : string
$propertyValue : mixed

__unset()

Unsets the property of the given name if tagged.

public __unset(string $propertyName) : mixed
Parameters
$propertyName : string

        
On this page

Search results