UsesTraits
Table of Contents
Properties
- $usedTraits : Collection<string|int, TraitInterface|Fqsen>
Methods
- getUsedTraits() : Collection<string|int, TraitInterface|Fqsen>
- Returns the traits used by this class.
- setUsedTraits() : void
- Sets a collection of all traits used by this class.
Properties
$usedTraits
protected
Collection<string|int, TraitInterface|Fqsen>
$usedTraits
References to traits consumed by this class
Methods
getUsedTraits()
Returns the traits used by this class.
public
getUsedTraits() : Collection<string|int, TraitInterface|Fqsen>
Returned values may either be a string (when the Trait is not in this project) or a TraitDescriptor.
Return values
Collection<string|int, TraitInterface|Fqsen>setUsedTraits()
Sets a collection of all traits used by this class.
public
setUsedTraits(Collection<string|int, TraitInterface|Fqsen> $usedTraits) : void
Parameters
- $usedTraits : Collection<string|int, TraitInterface|Fqsen>