/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { if (null !== $params->getOption('type')) { return; } $params->setOption('type', $this->default_type); }
/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { $name = $params->getName(); $name_parts = explode('::', $name, 2); $params->setName($name_parts[0]); if (isset($name_parts[1])) { $params->setOption('type', $name_parts[1]); } }
/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { $name = $params->getName(); $values_callback = $params->getValuesCallback(); $values = $values_callback($name); if (is_array($values)) { return; } $params->setValue([$name => $values]); }
/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { if (null !== $params->getOption('type')) { return; } if (!array_key_exists($params->getName(), $this->implied_types)) { return; } $params->setOption('type', $this->implied_types[$params->getName()]); }
/** * @param InvokableParams $params */ protected function process(InvokableParams $params) { $params->setValue(call_user_func($this->middleware, $params->getName(), $params->getValuesCallback(), $params->getOptions())); }