getDocblock() public method

Access the docblock generator object
public getDocblock ( ) : DocblockGenerator
return Pop\Code\Generator\DocblockGenerator
Exemplo n.º 1
0
 public function testSetAndGetDocblock()
 {
     $c = new Generator('TestClass.php', Generator::CREATE_CLASS);
     $c->setDocblock(new DocblockGenerator('This is a test desc.'));
     $this->assertEquals('This is a test desc.', $c->getDocblock()->getDesc());
 }