Exemplo n.º 1
0
 protected function addLastNode()
 {
     if ($this->lastNode === NULL) {
         return;
     }
     //var_dump($this->lastNode);
     if ($this->currentContainer->getFirstClass() === FALSE) {
         $this->currentContainer->addPreClassStatements($this->lastNode);
     } else {
         $this->currentContainer->addPostClassStatements($this->lastNode);
     }
     $this->lastNode = NULL;
 }
Exemplo n.º 2
0
 /**
  * @param string $modifierName
  * @return Tx_PhpParser_Domain_Model_AbstractObject (for fluid interface)
  * @throws Tx_PhpParser_Exception_SyntaxErrorException
  */
 public function setModifier($modifierName)
 {
     if (!in_array($modifierName, array('final', 'abstract'))) {
         throw new Tx_PhpParser_Exception_SyntaxErrorException($modifierName . ' modifier can\'t be applied to classes');
     } else {
         return parent::setModifier($modifierName);
     }
 }