Robbo\Presenter\Presenter::__get PHP Méthode

__get() public méthode

Pass any unknown variable calls to present{$variable} or fall through to the injected object.
public __get ( string $var ) : mixed
$var string
Résultat mixed
    public function __get($var)
    {
        if ($method = $this->getPresenterMethodFromVariable($var)) {
            return $this->{$method}();
        }
        return $this->__getDecorator()->decorate(is_array($this->object) ? $this->object[$var] : $this->object->{$var});
    }