Esempio n. 1
0
 /**
  * @param $value
  *
  * @return mixed
  */
 public function run($value)
 {
     $result = array();
     foreach ($this->dataSource->run($value) as $key => $item) {
         $this->mergeStrategy->merge($result, $item, $key);
     }
     return $result;
 }
 /**
  * @param $value
  *
  * @return mixed
  */
 public function run($value)
 {
     $return = array();
     $merge = $this->createMerge();
     foreach ($this->iterator as $key => $item) {
         $result = $this->context->run($item);
         $merge->merge($return, $result, $key);
     }
     return $return;
 }