src/Traits/WithFeedItemsTrait.php
public function removeItem(ItemInterface $item)
    {
        foreach ($this->feedItems as $i => $feedItem) {
            if ($feedItem == $item) {
                unset($this->feedItems[$i]);
            }
        }
        $this->feedItems = array_values($this->feedItems);
        return $this;
    }
public function removeItem(ItemInterface $item)
    {
        foreach ($this->feedItems as $i => $feedItem) {
            if ($feedItem == $item) {
                unset($this->feedItems[$i]);
            }
        }
        $this->feedItems = array_values($this->feedItems);
        return $this;
    }
public function removeItem ( ItemInterface $ item ) { foreach ( $ this -> feedItems as $ i => $ feedItem ) { if ( $ feedItem == $ item ) { unset ( $ this -> feedItems [ $ i ] ) ; } } $ this -> feedItems = array_values ( $ this -> feedItems ) ; return $ this ; }
Remove an item from the feed.
@param ItemInterface $item
@return $this
Remove an item from the feed .