trait TraitsAware

internal  
 

Methods

setTraits(array $traits)

Replaces all traits.

array
getTraits()

No description

addTrait(string $name)

Adds a method. If it already exists, throws an exception.

removeTrait(string $name)

No description

bool
hasTrait(string $name)

No description

Details

at line 29
TraitsAware setTraits(array $traits)

Replaces all traits.

Parameters

array $traits

Return Value

TraitsAware

at line 42
array getTraits()

No description

Return Value

array

at line 51
TraitUse addTrait(string $name)

Adds a method. If it already exists, throws an exception.

Parameters

string $name

Return Value

TraitUse

at line 65
TraitsAware removeTrait(string $name)

No description

Parameters

string $name

Return Value

TraitsAware

at line 72
bool hasTrait(string $name)

No description

Parameters

string $name

Return Value

bool