1 | <?php declare(strict_types=1); |
||
17 | final class ArrayElementIntegerIndex implements ArrayElement |
||
18 | { |
||
19 | /** @var int */ |
||
20 | private $index; |
||
21 | |||
22 | /** @var Type */ |
||
23 | private $value; |
||
24 | |||
25 | |||
26 | 20 | public function __construct(int $index, Type $value) |
|
31 | |||
32 | 1 | public function getIndex(): int |
|
36 | |||
37 | 1 | public function setIndex(int $index): void |
|
41 | |||
42 | 1 | public function getValue(): Type |
|
46 | |||
47 | 1 | public function setValue(Type $value): void |
|
51 | |||
52 | 5 | public function containsStringCount(string $searchTerm): int |
|
56 | |||
57 | 3 | public function replaceString(string $searchTerm, string $replaceTerm): void |
|
61 | |||
62 | 3 | public function __toString(): string |
|
66 | } |