isValid()) { throw new Exception\InvalidArgumentException('Invalid header value for Origin key: "' . $name . '"'); } return new static($value); } /** * @param string|null $value */ public function __construct($value = null) { if ($value) { HeaderValue::assertValid($value); $this->value = $value; } } public function getFieldName() { return 'Origin'; } public function getFieldValue() { return $this->value; } public function toString() { return 'Origin: ' . $this->getFieldValue(); } }