public function __get($name) { if (in_array($name, $this->_properties)) { return array_key_exists($name, $this->propertiesData) ? $this->propertiesData[$name] : null; } return parent::__get($name); }