Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class NullableIntArrayCast extends CustomCastBase |
||
8 | { |
||
9 | /** |
||
10 | * Cast the $value as an array of integer values. |
||
11 | * |
||
12 | * - set to null if an empty array or null value is passed |
||
13 | * |
||
14 | * @param $value |
||
15 | * @return string |
||
16 | */ |
||
17 | public function setAttribute($value): ?string |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Retrieve an array of values. |
||
24 | * |
||
25 | * @param $value |
||
26 | * @return array |
||
27 | */ |
||
28 | public function castAttribute($value): ?array |
||
33 |