| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 25 | class LocationHeader extends Header |
||
| 26 | { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var UriInterface |
||
| 30 | */ |
||
| 31 | private UriInterface $uri; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor of the class |
||
| 35 | * |
||
| 36 | * @param mixed $uri |
||
| 37 | * |
||
| 38 | * @throws InvalidUriException |
||
| 39 | * If the URI isn't valid. |
||
| 40 | */ |
||
| 41 | 5 | public function __construct($uri) |
|
| 42 | { |
||
| 43 | 5 | $uri = Uri::create($uri); |
|
| 44 | |||
| 45 | 5 | $this->uri = $uri; |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 3 | public function getFieldName(): string |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | 3 | public function getFieldValue(): string |
|
| 64 |