Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | class Arguments implements Argument, |
||
26 | TransformsToImmutable, |
||
27 | NamespaceDataFilter, |
||
28 | IteratorAggregate, |
||
29 | Countable, |
||
30 | JsonSerializable |
||
31 | { |
||
32 | use AccessorTrait, MutatorTrait, ArrayDataFilterTrait { |
||
33 | MutatorTrait::__set insteadof AccessorTrait; |
||
34 | } |
||
35 | |||
36 | protected array $storage = []; |
||
37 | |||
38 | 56 | public function __construct(array $values = []) |
|
39 | { |
||
40 | 56 | $this->storage = $values; |
|
41 | } |
||
42 | |||
43 | public function __clone() |
||
44 | { |
||
45 | } |
||
46 | |||
47 | 2 | public function namespace( |
|
48 | string $prefix, |
||
49 | bool $lowercase = true, |
||
50 | bool $trim = true): static |
||
51 | { |
||
52 | 2 | return new static($this->filter($this->toArray(), $prefix, $lowercase, $trim)); |
|
53 | } |
||
54 | |||
55 | 1 | public function toImmutable(): Immutable |
|
58 | } |
||
59 | } |
||
60 |