From 9fc4150f84c78d4fe1ce7d46a9334f04fb474d35 Mon Sep 17 00:00:00 2001 From: Andrey Gromov Date: Thu, 2 Mar 2017 12:02:42 +0000 Subject: [PATCH] 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 --- language/predefined/iterator.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/language/predefined/iterator.xml b/language/predefined/iterator.xml index 29502517c5..5f5f552d25 100644 --- a/language/predefined/iterator.xml +++ b/language/predefined/iterator.xml @@ -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]); }