Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class NullableIntArrayCast extends CustomCastBase |
||
9 | { |
||
10 | /** |
||
11 | * json_decode the $value |
||
12 | * |
||
13 | * @param $value |
||
14 | * @return string |
||
15 | */ |
||
16 | public function setAttribute($value) |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * json_encode the $value or return null |
||
23 | * |
||
24 | * @param $value |
||
25 | * @return string |
||
26 | */ |
||
27 | public function castAttribute($value) |
||
32 |