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

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

Защищенные свойства (Protected)

Свойство Тип Описание
$options

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

Метод Описание
__construct ( array $options = [] ) Creates a new configuration for code generator
getConstantSorting ( ) : string | boolean | phootwork\lang\Comparator | Closure Returns the constant sorting
getGenerateDocblock ( ) : boolean Returns whether docblocks should be generated
getGenerateEmptyDocblock ( ) : boolean Returns whether empty docblocks are generated
getGenerateReturnTypeHints ( ) : boolean Returns whether return type hints will be generated for method parameters (PHP 7)
getGenerateScalarTypeHints ( ) : boolean Returns whether scalar type hints will be generated for method parameters (PHP 7)
getMethodSorting ( ) : string | boolean | phootwork\lang\Comparator | Closure Returns the method sorting
getPropertySorting ( ) : string | boolean | phootwork\lang\Comparator | Closure Returns the property sorting
getUseStatementSorting ( ) : string | boolean | phootwork\lang\Comparator | Closure Returns the use statement sorting
isSortingEnabled ( ) : boolean Returns whether sorting is enabled
setConstantSorting ( $sorting ) Returns the constant sorting
setGenerateDocblock ( boolean $generate ) Sets whether docblocks should be generated
setGenerateEmptyDocblock ( boolean $generate ) Sets whether empty docblocks are generated
setGenerateReturnTypeHints ( boolean $generate ) Sets whether return type hints will be generated for method parameters (PHP 7)
setGenerateScalarTypeHints ( boolean $generate ) Sets whether scalar type hints will be generated for method parameters (PHP 7)
setMethodSorting ( $sorting ) Returns the method sorting
setPropertySorting ( $sorting ) Returns the property sorting
setSortingEnabled ( $enabled ) Returns whether sorting is enabled
setUseStatementSorting ( $sorting ) Returns the use statement sorting

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

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

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

__construct() публичный метод

Creates a new configuration for code generator
См. также: https://php-code-generator.readthedocs.org/en/latest/generator.html
public __construct ( array $options = [] )
$options array

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

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

getConstantSorting() публичный метод

Returns the constant sorting
public getConstantSorting ( ) : string | boolean | phootwork\lang\Comparator | Closure
Результат string | boolean | phootwork\lang\Comparator | Closure

getGenerateDocblock() публичный метод

Returns whether docblocks should be generated
public getGenerateDocblock ( ) : boolean
Результат boolean `true` if they will be generated and `false` if not

getGenerateEmptyDocblock() публичный метод

Returns whether empty docblocks are generated
public getGenerateEmptyDocblock ( ) : boolean
Результат boolean `true` if they will be generated and `false` if not

getGenerateReturnTypeHints() публичный метод

Returns whether return type hints will be generated for method parameters (PHP 7)
public getGenerateReturnTypeHints ( ) : boolean
Результат boolean `true` if they will be generated and `false` if not

getGenerateScalarTypeHints() публичный метод

Returns whether scalar type hints will be generated for method parameters (PHP 7)
public getGenerateScalarTypeHints ( ) : boolean
Результат boolean `true` if they will be generated and `false` if not

getMethodSorting() публичный метод

Returns the method sorting
public getMethodSorting ( ) : string | boolean | phootwork\lang\Comparator | Closure
Результат string | boolean | phootwork\lang\Comparator | Closure

getPropertySorting() публичный метод

Returns the property sorting
public getPropertySorting ( ) : string | boolean | phootwork\lang\Comparator | Closure
Результат string | boolean | phootwork\lang\Comparator | Closure

getUseStatementSorting() публичный метод

Returns the use statement sorting
public getUseStatementSorting ( ) : string | boolean | phootwork\lang\Comparator | Closure
Результат string | boolean | phootwork\lang\Comparator | Closure

isSortingEnabled() публичный метод

Returns whether sorting is enabled
public isSortingEnabled ( ) : boolean
Результат boolean `true` if it is enabled and `false` if not

setConstantSorting() публичный метод

Returns the constant sorting
public setConstantSorting ( $sorting )
$sorting string|bool|Comparator|\Closure

setGenerateDocblock() публичный метод

Sets whether docblocks should be generated
public setGenerateDocblock ( boolean $generate )
$generate boolean `true` if they will be generated and `false` if not

setGenerateEmptyDocblock() публичный метод

Sets whether empty docblocks are generated
public setGenerateEmptyDocblock ( boolean $generate )
$generate boolean `true` if they will be generated and `false` if not

setGenerateReturnTypeHints() публичный метод

Sets whether return type hints will be generated for method parameters (PHP 7)
public setGenerateReturnTypeHints ( boolean $generate )
$generate boolean `true` if they will be generated and `false` if not

setGenerateScalarTypeHints() публичный метод

Sets whether scalar type hints will be generated for method parameters (PHP 7)
public setGenerateScalarTypeHints ( boolean $generate )
$generate boolean `true` if they will be generated and `false` if not

setMethodSorting() публичный метод

Returns the method sorting
public setMethodSorting ( $sorting )
$sorting string|bool|Comparator|\Closure

setPropertySorting() публичный метод

Returns the property sorting
public setPropertySorting ( $sorting )
$sorting string|bool|Comparator|\Closure

setSortingEnabled() публичный метод

Returns whether sorting is enabled
public setSortingEnabled ( $enabled )
$enabled bool `true` if it is enabled and `false` if not

setUseStatementSorting() публичный метод

Returns the use statement sorting
public setUseStatementSorting ( $sorting )
$sorting string|bool|Comparator|\Closure

Описание свойств

$options защищенное свойство

protected $options