Ejemplo n.º 1
0
 public function testGetLineAfterChildren()
 {
     $method = new PhpMethod('Foo');
     $method->setHasBody(true);
     $line = $method->getLineAfterChildren();
     $this->assertSame('', $line);
 }
Ejemplo n.º 2
0
 /**
  * @param PhpMethodElement $method
  * @return PhpInterface
  */
 public function addMethodElement(PhpMethodElement $method)
 {
     if ($method->getHasBody()) {
         $method->setHasBody(false);
     }
     return parent::addMethodElement($method);
 }