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 | 2 | public function __construct(string $headerName) |
|
30 | 2 | } |
|
31 | |||
32 | 2 | public function asString(): string |
|
33 | { |
||
34 | 2 | return $this->headerName; |
|
35 | } |
||
36 | |||
37 | public function equals(self $other): bool |
||
38 | { |
||
39 | return $other->asString() === $this->asString(); |
||
40 | } |
||
41 | |||
42 | 2 | private function ensureIsNotEmpty(string $headerName): void |
|
46 | } |
||
47 | 2 | } |
|
48 | } |
||
49 |