Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function addCompositionMethod(CompositionMethodInterface $compositionMethod)
 {
     $compositionMethod->setParent($this);
     $this->getCompositionCollection()->addMethod($compositionMethod);
     return $this;
 }
 /**
  * @param CompositionMethodInterface $method
  * @return bool
  */
 public function addMethod(CompositionMethodInterface $method)
 {
     $this->addComposition($method->getTraitName());
     return $this->getMethods()->add($method);
 }