public function remove($id)
    {
        $success = false;
        foreach ($this->items as $i => $item) {
            if ($item->getFeedId() === $id) {
                unset($this->items[$i]);
                $success = true;
                break;
            }
        }

        if (false === $success) {
            throw new \InvalidArgumentException('Unknown item');
        }

        return $this;
    }
public function remove($id)
    {
        $success = false;
        foreach ($this->items as $i => $item) {
            if ($item->getFeedId() === $id) {
                unset($this->items[$i]);
                $success = true;
                break;
            }
        }

        if (false === $success) {
            throw new \InvalidArgumentException('Unknown item');
        }

        return $this;
    }
public function remove ( $ id ) { $ success = false ; foreach ( $ this -> items as $ i => $ item ) { if ( $ item -> getFeedId ( ) === $ id ) { unset ( $ this -> items [ $ i ] ) ; $ success = true ; break ; } } if ( false === $ success ) { throw new \ InvalidArgumentException ( 'Unknown item' ) ; } return $ this ; }
Removes an item by Id

@throws \InvalidArgumentException
@param $id
@return Feed
Removes an item by Id