public function __get($var) { if (in_array($var, $this->_properties)) { return $this->_parent->{$var}; } }