RRule\RSet::count PHP Метод

count() публичный Метод

Returns the number of recurrences in this set. It will have go through the whole recurrence, if this hasn't been done before, which introduces a performance penality.
public count ( ) : integer
Результат integer
    public function count()
    {
        if ($this->isInfinite()) {
            throw new \LogicException('Cannot count an infinite recurrence set.');
        }
        if ($this->total === null) {
            foreach ($this as $occurrence) {
            }
        }
        return $this->total;
    }