getName()]; return $request->withHeader($param->getWireName(), $param->filter($value)); } /** * @param CommandInterface $command * @param RequestInterface $request * @param Operation $operation * * @return RequestInterface */ public function after( CommandInterface $command, RequestInterface $request, Operation $operation ) { /** @var Parameter $additional */ $additional = $operation->getAdditionalParameters(); if ($additional && ($additional->getLocation() === $this->locationName)) { foreach ($command->toArray() as $key => $value) { if (!$operation->hasParam($key)) { $request = $request->withHeader($key, $additional->filter($value)); } } } return $request; } }