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