public function __construct($entityName) { parent::__construct($entityName); $this->_reflection = new ReflectionClass($this->_entityName); if (!$this->_reflection->isSubclassOf('Waf_Model_Entity_Injectable')) { throw new Waf_Model_EntityGenerator_Exception('This entityGenerator can only be used in combination with ' . 'Waf_Model_Entity_Injectable subclasses'); } }
public function __construct($entityName) { parent::__construct($entityName); $this->_reflection = new ReflectionClass($this->_entityName); $this->_reflectionProperties = $this->_reflection->getProperties(); }