Свойство | Тип | Описание | |
---|---|---|---|
$classGenerator | |||
$traitAliases | Array of trait aliases | ||
$traitOverrides | Array of trait overrides | ||
$traits | Array of trait names | ||
$uses | Array of string names |
Метод | Описание | |
---|---|---|
__construct ( |
||
addTrait ( $trait ) | ||
addTraitAlias ( $method, $alias, $visibility = null ) | ||
addTraitOverride ( $method, $traitsToReplace ) | ||
addTraits ( array $traits ) | ||
addUse ( $use, $useAlias = null ) | ||
generate ( ) | ||
getTraitAliases ( ) | ||
getTraitOverrides ( ) | ||
getTraits ( ) | ||
getUses ( ) | ||
hasTrait ( $traitName ) | ||
hasUse ( $use ) : boolean | ||
hasUseAlias ( $use ) : boolean | ||
removeTrait ( $traitName ) | ||
removeTraitOverride ( $method, $overridesToRemove = null ) | ||
removeUse ( $use ) : |
||
removeUseAlias ( $use ) : |
public __construct ( |
||
$classGenerator |
public removeTraitOverride ( $method, $overridesToRemove = null ) |
public removeUse ( $use ) : |
||
$use | ||
Результат |
public removeUseAlias ( $use ) : |
||
$use | ||
Результат |
protected ClassGenerator,Zend\Code\Generator $classGenerator | ||
Результат |