Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait HelpsLoopFunctions |
||
8 | { |
||
9 | /** |
||
10 | * Assign the value to the property or rescue. |
||
11 | * |
||
12 | * @param int|string $key |
||
13 | * @param mixed $value |
||
14 | * @param mixed|null $rescue |
||
15 | * |
||
16 | * @return void |
||
17 | */ |
||
18 | 15 | private function assignValue(int|string $key, mixed $value, mixed $rescue = null): void |
|
25 | ); |
||
26 | } |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return array |
||
31 | */ |
||
32 | 15 | private function ignoredPropertyNames(): array |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param int|string $key |
||
39 | * |
||
40 | * @return bool |
||
41 | */ |
||
42 | 15 | private function canAssignValue(int|string $key): bool |
|
47 |