public function getItemsAfter(ActivityFeedItem $targetItem): array
    {
        $newerItems = [];

        foreach($this->getItems() as $item) {
            if ($item->equals($targetItem)) {
                break;
            }

            $newerItems[] = $item;
        }

        return $newerItems;
    }
public function getItemsAfter(ActivityFeedItem $targetItem): array
    {
        $newerItems = [];

        foreach($this->getItems() as $item) {
            if ($item->equals($targetItem)) {
                break;
            }

            $newerItems[] = $item;
        }

        return $newerItems;
    }
public function getItemsAfter ( ActivityFeedItem $ targetItem ) : array { $ newerItems = [ ] ; foreach ( $ this -> getItems ( ) as $ item ) { if ( $ item -> equals ( $ targetItem ) ) { break ; } $ newerItems [ ] = $ item ; } return $ newerItems ; }
Returns all feed items in this feed that occur after the given item.

@param ActivityFeedItem $targetItem
@return ActivityFeedItem[]
Returns all feed items in this feed that occur after the given item .