Свойство | Type | Description | |
---|---|---|---|
$classGenerator | |||
$traitAliases | Array of trait aliases | ||
$traitOverrides | Array of trait overrides | ||
$traits | Array of trait names | ||
$uses | Array of string names |
Méthode | Description | |
---|---|---|
__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 | ||
Résultat |
public removeUseAlias ( $use ) : |
||
$use | ||
Résultat |
protected ClassGenerator,Zend\Code\Generator $classGenerator | ||
Résultat |