public function addTraits(array $traitNames) { $this->traits = array_merge($this->traits, $traitNames); }