Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | class SymbolListShortcut implements ArrayAccess |
||
12 | { |
||
13 | private $production; |
||
14 | |||
15 | public function __construct(Production $production) |
||
16 | { |
||
17 | $this->production = $production; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param mixed $offset |
||
22 | * @return mixed|array|AttributeListShortcut |
||
23 | * @throws Exception |
||
24 | */ |
||
25 | #[ReturnTypeWillChange] |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param mixed $offset |
||
36 | * @param mixed $value |
||
37 | * @throws Exception |
||
38 | */ |
||
39 | #[ReturnTypeWillChange] |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param mixed $offset |
||
47 | * @throws Exception |
||
48 | */ |
||
49 | #[ReturnTypeWillChange] |
||
50 | public function offsetUnset($offset) |
||
51 | { |
||
52 | throw new Exception("Cannot remove production symbol"); |
||
53 | } |
||
54 | |||
55 | #[ReturnTypeWillChange] |
||
61 | } |
||
62 | } |
||
63 |