public function removeComponent($id)
    {
        /** @var PartInterface $component */
        $component = $this->getComponents()->findByProperty('id', $id, true);
        if ($component) {
            $this->getComponents()->remove($component);
        }
        return $this;
    }
public function removeComponent($id)
    {
        /** @var PartInterface $component */
        $component = $this->getComponents()->findByProperty('id', $id, true);
        if ($component) {
            $this->getComponents()->remove($component);
        }
        return $this;
    }
public function removeComponent ( $ id ) { /** @var PartInterface $component */ $ component = $ this -> getComponents ( ) -> findByProperty ( 'id' , $ id , true ) ; if ( $ component ) { $ this -> getComponents ( ) -> remove ( $ component ) ; } return $ this ; }
Removes component from compound.

@param string $id
@return $this
Removes component from compound .