getBody() 공개 메소드

Get the method body
public getBody ( ) : string
리턴 string
예제 #1
0
 public function testSetAppendAndGetDocblock()
 {
     $c = new Generator('TestClass.php', Generator::CREATE_CLASS);
     $c->setBody('test body');
     $c->appendToBody('more code');
     $body = $c->getBody();
     $this->assertContains('test body', $body);
     $this->assertContains('more code', $body);
 }