PHP Trait Amp\Struct

This trait is intended to make using public properties a little safer by throwing when nonexistent property names are read or written.
Exibir arquivo Open project: amphp/amp

Public Methods

Method Description
__get ( string $property )
__set ( string $property, $value )

Private Methods

Method Description
generateStructPropertyError ( string $property ) : string
suggestPropertyName ( string $badProperty ) : string

Method Details

__get() public method

public __get ( string $property )
$property string

__set() public method

public __set ( string $property, $value )
$property string