public function parseArguments(ExecutorInterface $executor) : array { $result = []; foreach (parent::parseArguments($executor) as $argument) { if (is_array($argument)) { $result = array_merge($result, $argument); } else { $result[] = $argument; } } return $result; }
public function parseArguments(ExecutorInterface $executor) : array { $result = []; for ($i = $this->retries; $i >= 0; $i--) { try { $result = parent::parseArguments($executor); } catch (\Throwable $thr) { if (in_array(get_class($thr), $this->exceptions)) { if ($i > 0) { call_user_func($this->beforeRetry, $thr); continue; } } throw new $thr(); } } return $result; }
/** * @param ExecutorInterface $executor * * @return mixed */ public function parseArguments(ExecutorInterface $executor) { return call_user_func_array($this->callback, parent::parseArguments($executor)); }
/** * @param string $groupName * @param mixed $input */ public function __construct(string $groupName, $input) { parent::__construct($groupName, $input); }
/** * DataMapAction constructor. * * @param string $mapperName * @param mixed $input */ public function __construct(string $mapperName, $input) { parent::__construct($mapperName, $input); }