$docblock); } if (is_array($docblock)) { $docblock = new Zend_CodeGenerator_Php_Docblock($docblock); } elseif (!$docblock instanceof Zend_CodeGenerator_Php_Docblock) { require_once 'Zend/CodeGenerator/Php/Exception.php'; throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock'); } $this->_docblock = $docblock; return $this; } /** * getDocblock() * * @return Zend_CodeGenerator_Php_Docblock */ public function getDocblock() { return $this->_docblock; } /** * setAbstract() * * @param bool $isAbstract * @return Zend_CodeGenerator_Php_Member_Abstract */ public function setAbstract($isAbstract) { $this->_isAbstract = ($isAbstract) ? true : false; return $this; } /** * isAbstract() * * @return bool */ public function isAbstract() { return $this->_isAbstract; } /** * setStatic() * * @param bool $isStatic * @return Zend_CodeGenerator_Php_Member_Abstract */ public function setStatic($isStatic) { $this->_isStatic = ($isStatic) ? true : false; return $this; } /** * isStatic() * * @return bool */ public function isStatic() { return $this->_isStatic; } /** * setVisitibility() * * @param const $visibility * @return Zend_CodeGenerator_Php_Member_Abstract */ public function setVisibility($visibility) { $this->_visibility = $visibility; return $this; } /** * getVisibility() * * @return const */ public function getVisibility() { return $this->_visibility; } /** * setName() * * @param string $name * @return Zend_CodeGenerator_Php_Member_Abstract */ public function setName($name) { $this->_name = $name; return $this; } /** * getName() * * @return string */ public function getName() { return $this->_name; } }