/** * @param CompositionMethodInterface $method * @return bool */ public function addMethod(CompositionMethodInterface $method) { $this->addComposition($method->getTraitName()); return $this->getMethods()->add($method); }