Total Complexity | 10 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Arguments extends ArrayObject |
||
8 | { |
||
9 | /** |
||
10 | * Arguments constructor. |
||
11 | * |
||
12 | * @param array $args |
||
13 | */ |
||
14 | public function __construct(array $args) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param $offset |
||
31 | * @return mixed|null |
||
32 | */ |
||
33 | public function offsetGet($offset) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get the instance as an array. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function toArray(): array |
||
48 | { |
||
49 | return $this->getArrayCopy(); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return array |
||
54 | */ |
||
55 | public function getArrayCopy(): array |
||
66 | } |
||
67 | |||
68 | /** |
||
69 | * Return if the arguments are empty. |
||
70 | * |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function isEmpty() |
||
78 |