public function __get($name) { $this->{$name} = $this->resolveProperty($name); return $this->{$name}; }