public function getItem($id)
    {
        foreach ($this->items as $item) {
            if ($item->getId() == $id) {
                return ($item);
            }
        }

        return null;
    }
public function getItem($id)
    {
        foreach ($this->items as $item) {
            if ($item->getId() == $id) {
                return ($item);
            }
        }

        return null;
    }
public function getItem ( $ id ) { foreach ( $ this -> items as $ item ) { if ( $ item -> getId ( ) == $ id ) { return ( $ item ) ; } } return null ; }
Returns the item from a given id.

@param int $id

@return null|FeedItem
Returns the item from a given id .