| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 72.72% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class HeaderName |
||
| 22 | { |
||
| 23 | /** @var string * */ |
||
| 24 | private $headerName; |
||
| 25 | |||
| 26 | 6 | public function __construct(string $headerName) |
|
| 30 | 6 | } |
|
| 31 | |||
| 32 | 6 | public function asString(): string |
|
| 33 | { |
||
| 34 | 6 | return $this->headerName; |
|
| 35 | } |
||
| 36 | |||
| 37 | public function equals(self $other): bool |
||
| 38 | { |
||
| 39 | return $other->asString() === $this->asString(); |
||
| 40 | } |
||
| 41 | |||
| 42 | 6 | private function ensureIsNotEmpty(string $headerName): void |
|
| 46 | } |
||
| 47 | 6 | } |
|
| 48 | } |
||
| 49 |