Neos\Flow\ObjectManagement\Proxy\ProxyClass::addTraits PHP Method

addTraits() public method

Note that the passed trait names must have a leading backslash, for example "\Neos\Flow\ObjectManagement\Proxy\PropertyInjectionTrait".
public addTraits ( array $traitNames ) : void
$traitNames array
return void
    public function addTraits(array $traitNames)
    {
        $this->traits = array_merge($this->traits, $traitNames);
    }