public function removeElement(WebsiteInterface $website)
    {
        $key = array_search($website, $this->websites, true);

        if ($key === false) {
            return false;
        }
        unset($this->websites[$key]);

        return true;
    }
public function removeElement(WebsiteInterface $website)
    {
        $key = array_search($website, $this->websites, true);

        if ($key === false) {
            return false;
        }
        unset($this->websites[$key]);

        return true;
    }
public function removeElement ( WebsiteInterface $ website ) { $ key = array_search ( $ website , $ this -> websites , true ) ; if ( $ key === false ) { return false ; } unset ( $ this -> websites [ $ key ] ) ; return true ; }
Remove element from collection

@param WebsiteInterface $website Element to remove

@return bool
Remove element from collection