public function __get($propertyName) { switch ($propertyName) { case 'definitionStorage': case 'workflow': return $this->properties[$propertyName]; } throw new ezcBasePropertyNotFoundException($propertyName); }