메소드 | 설명 | |
---|---|---|
addTrait ( |
Adds a trait. | |
getTraits ( ) : string[] | Returns a collection of traits | |
hasTrait ( |
Checks whether a trait exists | |
removeTrait ( |
Removes a trait. | |
setTraits ( array $traits ) | Sets a collection of traits |
public removeTrait ( |
||
$trait | trait or qualified name |