Back to Feed class

Method count

public int
count
()
Returns a count of the number of entries in the feed.
Returns
  • int number of entries in the feed.
Class: Feed
Project: Joomla

Method count - Source code

/**
 * Returns a count of the number of entries in the feed.
 *
 * This method is here to implement the Countable interface.
 * You can call it by doing count($feed) rather than $feed->count();
 *
 * @return  integer number of entries in the feed.
 */
#[\ReturnTypeWillChange]
public function count()
{
    return \count($this->entries);
}