mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Example code style by "Bernard van der Esch"
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342004 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b98ce020a7
commit
9fc4150f84
1 changed files with 5 additions and 5 deletions
|
@ -76,27 +76,27 @@ class myIterator implements Iterator {
|
|||
$this->position = 0;
|
||||
}
|
||||
|
||||
function rewind() {
|
||||
public function rewind() {
|
||||
var_dump(__METHOD__);
|
||||
$this->position = 0;
|
||||
}
|
||||
|
||||
function current() {
|
||||
public function current() {
|
||||
var_dump(__METHOD__);
|
||||
return $this->array[$this->position];
|
||||
}
|
||||
|
||||
function key() {
|
||||
public function key() {
|
||||
var_dump(__METHOD__);
|
||||
return $this->position;
|
||||
}
|
||||
|
||||
function next() {
|
||||
public function next() {
|
||||
var_dump(__METHOD__);
|
||||
++$this->position;
|
||||
}
|
||||
|
||||
function valid() {
|
||||
public function valid() {
|
||||
var_dump(__METHOD__);
|
||||
return isset($this->array[$this->position]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue