public function setTraits(array $traits) { foreach ($traits as $trait) { $this->addTrait($trait); } return $this; }