gossi\codegen\config\CodeGeneratorConfig::getGenerateEmptyDocblock PHP Method

getGenerateEmptyDocblock() public method

Returns whether empty docblocks are generated
public getGenerateEmptyDocblock ( ) : boolean
return boolean `true` if they will be generated and `false` if not
    public function getGenerateEmptyDocblock()
    {
        return $this->options['generateEmptyDocblock'];
    }

Usage Example

 public function testCodeGeneratorConfigSetters()
 {
     $config = new CodeGeneratorConfig();
     $config->setGenerateDocblock(false);
     $this->assertFalse($config->getGenerateDocblock());
     $this->assertFalse($config->getGenerateEmptyDocblock());
     $config->setGenerateEmptyDocblock(true);
     $this->assertTrue($config->getGenerateDocblock());
     $this->assertTrue($config->getGenerateEmptyDocblock());
     $config->setGenerateEmptyDocblock(false);
     $this->assertTrue($config->getGenerateDocblock());
     $this->assertFalse($config->getGenerateEmptyDocblock());
     $config->setGenerateReturnTypeHints(true);
     $this->assertTrue($config->getGenerateReturnTypeHints());
     $config->setGenerateScalarTypeHints(true);
     $this->assertTrue($config->getGenerateScalarTypeHints());
     $config->setUseStatementSorting(false);
     $this->assertFalse($config->getUseStatementSorting());
     $config->setConstantSorting('abc');
     $this->assertEquals('abc', $config->getConstantSorting());
     $config->setPropertySorting(new ComparableComparator());
     $this->assertTrue($config->getPropertySorting() instanceof Comparator);
     $cmp = function ($a, $b) {
         return strcmp($a, $b);
     };
     $config->setMethodSorting($cmp);
     $this->assertSame($cmp, $config->getMethodSorting());
     $config->setSortingEnabled(false);
     $this->assertFalse($config->isSortingEnabled());
 }
All Usage Examples Of gossi\codegen\config\CodeGeneratorConfig::getGenerateEmptyDocblock