public withHeader ( string $name, mixed $value ) : |
||
$name | string | |
$value | mixed | |
return |
public function withHeader(string $name, $value) : Builder
{
if ($this->signature) {
throw new BadMethodCallException('You must unsign before make changes');
}
$this->headers[$name] = $this->claimFactory->create($name, $value);
return $this;
}