Skip to content

Commit

Permalink
Expose RRULE properties from RRuleIterator (#15)
Browse files Browse the repository at this point in the history
* Expose RRULE properties from RRuleIterator

COUNT
FREQ
INTERVAL
UNTIL

* Test get accessors for RRULE properties
  • Loading branch information
bcaller committed Jul 22, 2020
1 parent ca647a2 commit b16c3e7
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 42 deletions.
20 changes: 20 additions & 0 deletions lib/Recur/RRuleIterator.php
Expand Up @@ -195,6 +195,26 @@ public function fastForwardToEnd()
$this->currentDate = $previous;
}

public function getCount()
{
return $this->count;
}

public function getInterval()
{
return $this->interval;
}

public function getUntil()
{
return $this->until;
}

public function getFrequency()
{
return $this->frequency;
}

/**
* Return the frequency in number of days.
*
Expand Down

0 comments on commit b16c3e7

Please sign in to comment.