final class TraitType extends ClassLike

Definition of a trait with properties, methods, constants and traits.

Methods

addMember(TraitUse $member, bool $overwrite = false)

Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.

void
__clone()

No description

Details

at line 28
TraitType addMember(TraitUse $member, bool $overwrite = false)

Adds a member. If it already exists, throws an exception or overwrites it if $overwrite is true.

Parameters

TraitUse $member
bool $overwrite

Return Value

TraitType

at line 45
void __clone()

No description

Return Value

void

Traits