public function removeChild(GroupInterface $child)
    {
        if (!$this->hasChild($child)) {
            throw new \InvalidArgumentException('Trying to remove a non existing child group');
        }

        $this->children->removeElement($child);
    }
public function removeChild(GroupInterface $child)
    {
        if (!$this->hasChild($child)) {
            throw new \InvalidArgumentException('Trying to remove a non existing child group');
        }

        $this->children->removeElement($child);
    }
public function removeChild ( GroupInterface $ child ) { if ( ! $ this -> hasChild ( $ child ) ) { throw new \ InvalidArgumentException ( 'Trying to remove a non existing child group' ) ; } $ this -> children -> removeElement ( $ child ) ; }
Remove a child group from the collection.

@param GroupInterface $child
Remove a child group from the collection .