Aerys\Options::__get PHP Method

__get() public method

Allow retrieval of "public" properties
public __get ( string $property ) : mixed
$property string
return mixed Returns the value of the requested property
    public function __get(string $property)
    {
        if (\property_exists($this, $property)) {
            return $this->{$property};
        } else {
            // Use \Amp\Struct::generateStructPropertyError() to get a nice message
            // with a possible suggestion for the correct name
            throw new \DomainException($this->generateStructPropertyError($property));
        }
    }