public function addComponent(ComponentInterface $component)
    {
        $this->getComponents()->push($component);
        $component->attachTo($this);
        return $this;
    }
public function addComponent(ComponentInterface $component)
    {
        $this->getComponents()->push($component);
        $component->attachTo($this);
        return $this;
    }
public function addComponent ( ComponentInterface $ component ) { $ this -> getComponents ( ) -> push ( $ component ) ; $ component -> attachTo ( $ this ) ; return $ this ; }
Adds component to the collection of child components.

@param ComponentInterface $component
@return $this
Adds component to the collection of child components .