Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | class Context extends ArrayObject |
||
14 | { |
||
15 | /** |
||
16 | * @param string $key |
||
17 | * @return bool |
||
18 | */ |
||
19 | public function has(string $key) : bool |
||
20 | { |
||
21 | return $this->offsetExists($key); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param string $key |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function get(string $key) |
||
29 | { |
||
30 | return $this->offsetExists($key) ? $this->offsetGet($key) : null; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param string $key |
||
35 | * @param mixed $val |
||
36 | * @return static |
||
37 | */ |
||
38 | public function set(string $key, $val) : self |
||
42 | } |
||
43 | } |
||
44 |