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}); }