PHP 클래스 gossi\codegen\config\CodeGeneratorConfig

저자: Thomas Gossmann
파일 보기 프로젝트 열기: gossi/php-code-generator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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