getDocblock() public méthode

Access the docblock generator object
public getDocblock ( ) : DocblockGenerator
Résultat Pop\Code\Generator\DocblockGenerator
Exemple #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());
 }