projectTo() публичный Метод

Returns a new join iterator that will project the values with the supplied function, called with the parameters ($outerValue, $innerValue, $outerKey, $innerKey).
public projectTo ( callable $function ) : Traversable
$function callable
Результат Traversable
Пример #1
0
 public function to(callable $joinFunction)
 {
     $traversableFactory = $this->traversableFactory;
     return $traversableFactory($this->joinIterator->projectTo($joinFunction));
 }