walk() 공개 메소드

Iterate over the keys and values of the supplied iterator and passes them (value, key) to the supplied function.
public walk ( Traversable $iterator, callable $function ) : void
$iterator Traversable
$function callable
리턴 void
예제 #1
0
 public function iterate(callable $function)
 {
     $this->scheme->walk($this->getTrueIterator(), $function);
 }
예제 #2
0
 public function iterate(callable $function)
 {
     $this->scheme->walk($this->elements, $function);
 }