gossi\codegen\config\CodeFileGeneratorConfig::setHeaderComment PHP Method

setHeaderComment() public method

Sets the file header comment
public setHeaderComment ( string $comment )
$comment string the header comment
    public function setHeaderComment($comment)
    {
        $this->options['headerComment'] = $comment;
        return $this;
    }

Usage Example

 public function testCodeFileGeneratorConfigSetters()
 {
     $config = new CodeFileGeneratorConfig();
     $this->assertEquals('hello world', $config->setHeaderComment('hello world')->getHeaderComment());
     $docblock = new Docblock();
     $this->assertSame($docblock, $config->setHeaderDocblock($docblock)->getHeaderDocblock());
     $this->assertFalse($config->setBlankLineAtEnd(false)->getBlankLineAtEnd());
     $this->assertTrue($config->setDeclareStrictTypes(true)->getDeclareStrictTypes());
 }