Total Complexity | 10 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class Wrapper implements Dictionary |
||
15 | { |
||
16 | /** |
||
17 | * @param Dictionary<E> $dictionary |
||
18 | */ |
||
19 | public function __construct(private readonly Dictionary $dictionary) {} |
||
20 | |||
21 | public function getName(): string |
||
22 | { |
||
23 | 19 | return $this->dictionary->getName(); |
|
24 | } |
||
25 | 19 | ||
26 | 19 | public function getValues(): array |
|
29 | } |
||
30 | 4 | ||
31 | public function getKeys(): array |
||
32 | { |
||
33 | 6 | return $this->dictionary->getKeys(); |
|
34 | } |
||
35 | 6 | ||
36 | public function offsetExists(mixed $offset): bool |
||
37 | { |
||
38 | 2 | return $this->dictionary->offsetExists($offset); |
|
39 | } |
||
40 | 2 | ||
41 | public function offsetGet(mixed $offset): mixed |
||
44 | } |
||
45 | 1 | ||
46 | public function offsetSet(mixed $offset, mixed $value): void |
||
47 | { |
||
48 | 3 | $this->dictionary->offsetSet($offset, $value); |
|
49 | } |
||
50 | 3 | ||
51 | public function offsetUnset(mixed $offset): void |
||
54 | } |
||
55 | 1 | ||
56 | 1 | public function count(): int |
|
57 | { |
||
58 | 1 | return $this->dictionary->count(); |
|
59 | } |
||
60 | 1 | ||
61 | 1 | /** |
|
62 | * @return Dictionary<E> |
||
63 | 1 | */ |
|
64 | public function getIterator(): Dictionary |
||
67 | } |
||
68 | } |
||
69 |