1 | <?php |
||
13 | class Entry |
||
14 | { |
||
15 | /** @var string */ |
||
16 | private $value; |
||
17 | |||
18 | /** @var int */ |
||
19 | private $index; |
||
20 | |||
21 | 5 | public function __construct(string $value, int $index) |
|
26 | |||
27 | 16 | public function value(): string |
|
31 | |||
32 | 21 | public function index(): int |
|
36 | |||
37 | 7 | public function equals(self $other): bool |
|
41 | |||
42 | 11 | public function equalValue(string $value): bool |
|
46 | |||
47 | 18 | public function equalIndex(int $index): bool |
|
51 | } |
||
52 |