Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class Entry |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $entry; |
||
11 | |||
12 | /** @var string */ |
||
13 | private $originalEntry; |
||
14 | |||
15 | public function __construct(string $entry) |
||
16 | { |
||
17 | Assert::notEmpty($entry); |
||
18 | |||
19 | $this->originalEntry = $entry; |
||
20 | $this->entry = $entry; |
||
21 | } |
||
22 | |||
23 | public function equalTo(self $other): bool |
||
24 | { |
||
25 | return $this == $other; |
||
26 | } |
||
27 | |||
28 | public function get(): string |
||
31 | } |
||
32 | |||
33 | public function __invoke(): string |
||
38 |