CodeGeneratorConfig
class CodeGeneratorConfig
Configuration for code generation
Methods
Creates a new configuration for code generator
Returns whether docblocks should be generated
Sets whether docblocks should be generated
Returns whether empty docblocks are generated
Sets whether empty docblocks are generated
Returns whether scalar type hints will be generated for method parameters (PHP 7)
Returns whether sorting is enabled
Returns the use statement sorting
Returns the constant sorting
Returns the property sorting
Returns the method sorting
Sets whether scalar type hints will be generated for method parameters (PHP 7)
Returns whether return type hints will be generated for method parameters (PHP 7)
Sets whether return type hints will be generated for method parameters (PHP 7)
Returns whether sorting is enabled
Returns the use statement sorting
Returns the constant sorting
Returns the property sorting
Returns the method sorting
Details
at line line 24
__construct(array $options = array())
Creates a new configuration for code generator
at line line 61
bool
getGenerateDocblock()
Returns whether docblocks should be generated
at line line 71
$this
setGenerateDocblock(bool $generate)
Sets whether docblocks should be generated
at line line 84
bool
getGenerateEmptyDocblock()
Returns whether empty docblocks are generated
at line line 94
$this
setGenerateEmptyDocblock(bool $generate)
Sets whether empty docblocks are generated
at line line 107
bool
getGenerateScalarTypeHints()
Returns whether scalar type hints will be generated for method parameters (PHP 7)
at line line 116
bool
isSortingEnabled()
Returns whether sorting is enabled
at line line 125
string|bool|Comparator|Closure
getUseStatementSorting()
Returns the use statement sorting
at line line 134
string|bool|Comparator|Closure
getConstantSorting()
Returns the constant sorting
at line line 143
string|bool|Comparator|Closure
getPropertySorting()
Returns the property sorting
at line line 152
string|bool|Comparator|Closure
getMethodSorting()
Returns the method sorting
at line line 162
$this
setGenerateScalarTypeHints(bool $generate)
Sets whether scalar type hints will be generated for method parameters (PHP 7)
at line line 172
bool
getGenerateReturnTypeHints()
Returns whether return type hints will be generated for method parameters (PHP 7)
at line line 182
$this
setGenerateReturnTypeHints(bool $generate)
Sets whether return type hints will be generated for method parameters (PHP 7)
at line line 193
$this
setSortingEnabled($enabled)
Returns whether sorting is enabled
at line line 204
$this
setUseStatementSorting($sorting)
Returns the use statement sorting
at line line 215
$this
setConstantSorting($sorting)
Returns the constant sorting
at line line 226
$this
setPropertySorting($sorting)
Returns the property sorting
at line line 237
$this
setMethodSorting($sorting)
Returns the method sorting