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);
 }