Total Complexity | 7 |
Total Lines | 63 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | final class Arguments implements \IteratorAggregate, \Countable |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $list; |
||
21 | |||
22 | /** |
||
23 | * @param array $list |
||
24 | */ |
||
25 | 16 | public function __construct(array $list) |
|
26 | { |
||
27 | 16 | $this->list = $list; |
|
28 | 16 | } |
|
29 | |||
30 | /** |
||
31 | * @return self |
||
32 | */ |
||
33 | 11 | public static function empty(): self |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param Arguments $other |
||
40 | * |
||
41 | * @return self |
||
42 | */ |
||
43 | 1 | public function merge(Arguments $other): self |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @param Arguments $other |
||
50 | * |
||
51 | * @return self |
||
52 | */ |
||
53 | 11 | public function inject(Arguments $other): self |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 2 | public function count() |
|
68 | { |
||
69 | 2 | return \count($this->list); |
|
70 | } |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 14 | public function getIterator() |
|
78 | 14 | } |
|
79 | } |
||
80 |