Esempio n. 1
0
 /**
  * @param PhpMethodElement $method
  * @return PhpInterface
  */
 public function addMethodElement(PhpMethodElement $method)
 {
     if ($method->getHasBody()) {
         $method->setHasBody(false);
     }
     return parent::addMethodElement($method);
 }
 /**
  * @param PhpClass $class
  */
 protected function defineStringMethod(PhpClass $class)
 {
     $class->addAnnotationBlockElement($this->getToStringMethodAnnotationBlock());
     $class->addMethodElement($this->getToStringMethod());
     return $this;
 }