rfc:functional-elements:call-iterator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:functional-elements:call-iterator [2008/03/16 18:56] – Adding accessor for method arguments lstrojnyrfc:functional-elements:call-iterator [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ===== class CallIterator ===== ===== class CallIterator =====
 +
 +
 ==== Prototype ==== ==== Prototype ====
 <code php> <code php>
 class CallIterator implements Iterator class CallIterator implements Iterator
 { {
-    void public function __construct(array|Traversable $iterator, string $method, array $method_arguments = array()); +    public void __construct(array|Traversable $iterator, string $method, scalar|array $method_arguments = array()); 
-    void public function setMethod(string $method); +    public void setMethod(string $method); 
-    string public function getMethod(); +    public string getMethod(); 
-    void public function setMethodArguments(scalar|array $arguments); +    public void setMethodArguments(scalar|array $arguments); 
-    array getMethodArguments(); +    public array getMethodArguments(); 
-    [ ... Interface implementations ... ]+    [ ... Interface method ... ]
 } }
 </code> </code>
 +
 ==== Simplified example implementation ==== ==== Simplified example implementation ====
 <code php> <code php>
rfc/functional-elements/call-iterator.1205693772.txt.gz · Last modified: 2017/09/22 13:28 (external edit)