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.
Afficher le fichier Open project: amphp/amp

Méthodes publiques

Méthode Description
__get ( string $property )
__set ( string $property, $value )

Private Methods

Méthode Description
generateStructPropertyError ( string $property ) : string
suggestPropertyName ( string $badProperty ) : string

Method Details

__get() public méthode

public __get ( string $property )
$property string

__set() public méthode

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