PHP Класс gossi\codegen\config\CodeFileGeneratorConfig

Автор: Thomas Gossmann
Наследование: extends CodeGeneratorConfig
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getBlankLineAtEnd ( ) : boolean Returns whether a blank line should be generated at the end of the file
getDeclareStrictTypes ( ) : boolean Returns whether a declare(strict_types=1); statement should be printed below the header comments (PHP 7)
getHeaderComment ( ) : string Returns the file header comment
getHeaderDocblock ( ) : gossi\docblock\Docblock Returns the file header docblock
setBlankLineAtEnd ( boolean $show ) Sets whether a blank line should be generated at the end of the file
setDeclareStrictTypes ( boolean $strict ) Sets whether a declare(strict_types=1); statement should be printed below the header comments (PHP 7)
setHeaderComment ( string $comment ) Sets the file header comment
setHeaderDocblock ( gossi\docblock\Docblock $docblock ) Sets the file header docblock

Защищенные методы

Метод Описание
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )

Приватные методы

Метод Описание
toDocblock ( mixed $value ) : gossi\docblock\Docblock | null

Описание методов

configureOptions() защищенный Метод

protected configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

getBlankLineAtEnd() публичный Метод

Returns whether a blank line should be generated at the end of the file
public getBlankLineAtEnd ( ) : boolean
Результат boolean `true` if it will be generated and `false` if not

getDeclareStrictTypes() публичный Метод

Returns whether a declare(strict_types=1); statement should be printed below the header comments (PHP 7)
public getDeclareStrictTypes ( ) : boolean
Результат boolean `true` if it will be printed and `false` if not

getHeaderComment() публичный Метод

Returns the file header comment
public getHeaderComment ( ) : string
Результат string the header comment

getHeaderDocblock() публичный Метод

Returns the file header docblock
public getHeaderDocblock ( ) : gossi\docblock\Docblock
Результат gossi\docblock\Docblock the docblock

setBlankLineAtEnd() публичный Метод

Sets whether a blank line should be generated at the end of the file
public setBlankLineAtEnd ( boolean $show )
$show boolean `true` if it will be generated and `false` if not

setDeclareStrictTypes() публичный Метод

Sets whether a declare(strict_types=1); statement should be printed below the header comments (PHP 7)
public setDeclareStrictTypes ( boolean $strict )
$strict boolean `true` if it will be printed and `false` if not

setHeaderComment() публичный Метод

Sets the file header comment
public setHeaderComment ( string $comment )
$comment string the header comment

setHeaderDocblock() публичный Метод

Sets the file header docblock
public setHeaderDocblock ( gossi\docblock\Docblock $docblock )
$docblock gossi\docblock\Docblock the docblock