PHP Class Zend\Code\Generator\TraitUsageGenerator

Inheritance: extends Zend\Code\Generator\AbstractGenerator
Afficher le fichier Open project: zendframework/zend-code

Protected Properties

Свойство Type Description
$classGenerator ClassGenerator
$traitAliases Array of trait aliases
$traitOverrides Array of trait overrides
$traits Array of trait names
$uses Array of string names

Méthodes publiques

Méthode Description
__construct ( ClassGenerator $classGenerator )
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 ) : TraitUsageGenerator
removeUseAlias ( $use ) : TraitUsageGenerator

Method Details

__construct() public méthode

public __construct ( ClassGenerator $classGenerator )
$classGenerator ClassGenerator

addTrait() public méthode

public addTrait ( $trait )

addTraitAlias() public méthode

public addTraitAlias ( $method, $alias, $visibility = null )

addTraitOverride() public méthode

public addTraitOverride ( $method, $traitsToReplace )

addTraits() public méthode

public addTraits ( array $traits )
$traits array

addUse() public méthode

public addUse ( $use, $useAlias = null )

generate() public méthode

public generate ( )

getTraitAliases() public méthode

public getTraitAliases ( )

getTraitOverrides() public méthode

public getTraitOverrides ( )

getTraits() public méthode

public getTraits ( )

getUses() public méthode

public getUses ( )

hasTrait() public méthode

public hasTrait ( $traitName )

hasUse() public méthode

public hasUse ( $use ) : boolean
$use
Résultat boolean

hasUseAlias() public méthode

public hasUseAlias ( $use ) : boolean
$use
Résultat boolean

removeTrait() public méthode

public removeTrait ( $traitName )

removeTraitOverride() public méthode

public removeTraitOverride ( $method, $overridesToRemove = null )

removeUse() public méthode

public removeUse ( $use ) : TraitUsageGenerator
$use
Résultat TraitUsageGenerator

removeUseAlias() public méthode

public removeUseAlias ( $use ) : TraitUsageGenerator
$use
Résultat TraitUsageGenerator

Property Details

$classGenerator protected_oe property

protected ClassGenerator,Zend\Code\Generator $classGenerator
Résultat ClassGenerator

$traitAliases protected_oe property

Array of trait aliases
protected $traitAliases

$traitOverrides protected_oe property

Array of trait overrides
protected $traitOverrides

$traits protected_oe property

Array of trait names
protected $traits

$uses protected_oe property

Array of string names
protected $uses