class TestIterator2 in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/tests/_files/TestIterator2.php \TestIterator2
Hierarchy
- class \TestIterator2 implements \Iterator
Expanded class hierarchy of TestIterator2
File
- vendor/
phpunit/ phpunit/ tests/ _files/ TestIterator2.php, line 2
View source
class TestIterator2 implements Iterator {
protected $data;
public function __construct(array $array) {
$this->data = $array;
}
public function current() {
return current($this->data);
}
public function next() {
next($this->data);
}
public function key() {
return key($this->data);
}
public function valid() {
return key($this->data) !== null;
}
public function rewind() {
reset($this->data);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestIterator2:: |
protected | property | ||
TestIterator2:: |
public | function | ||
TestIterator2:: |
public | function | ||
TestIterator2:: |
public | function | ||
TestIterator2:: |
public | function | ||
TestIterator2:: |
public | function | ||
TestIterator2:: |
public | function |