mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-04-04 21:25:21 +02:00
Remove Iterator interface implementation from RSet
Was replaced by IteratorAggregate interface in v2.0
This commit is contained in:
parent
4af70c3bd7
commit
5a23f0e03b
50
src/RSet.php
50
src/RSet.php
@ -483,56 +483,6 @@ class RSet implements RRuleInterface
|
||||
return $occurs;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Iterator interface
|
||||
|
||||
/** @internal */
|
||||
protected $current = 0;
|
||||
/** @internal */
|
||||
protected $key = 0;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function rewind()
|
||||
{
|
||||
$this->current = $this->iterate(true);
|
||||
$this->key = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function current()
|
||||
{
|
||||
return $this->current;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function key()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function next()
|
||||
{
|
||||
$this->current = $this->iterate();
|
||||
$this->key += 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return $this->current !== null;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// ArrayAccess interface
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user