Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 0 |
1 | <?php |
||
7 | abstract class AbstractDependencyProvider implements DependencyProviderInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var callable[] |
||
11 | */ |
||
12 | protected $container; |
||
13 | |||
14 | /** |
||
15 | * @param mixed $offset |
||
16 | * |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function offsetExists($offset): bool |
||
20 | { |
||
21 | return isset($this->container[$offset]); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param mixed $offset |
||
26 | * |
||
27 | * @return callable |
||
28 | */ |
||
29 | public function offsetGet($offset) |
||
30 | { |
||
31 | return $this->container[$offset]; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param mixed $offset |
||
36 | * @param mixed $value |
||
37 | */ |
||
38 | 1 | public function offsetSet($offset, $value) |
|
41 | 1 | } |
|
42 | |||
43 | /** |
||
44 | * @param mixed $offset |
||
45 | */ |
||
46 | public function offsetUnset($offset) |
||
49 | } |
||
50 | |||
51 | } |