Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | class LocaleResource extends AbstractResource |
||
29 | { |
||
30 | /** |
||
31 | * Create a new resource instance. |
||
32 | * |
||
33 | * @param Locale $resource |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | 7 | public function __construct(Locale $resource) |
|
40 | 7 | } |
|
41 | |||
42 | /** |
||
43 | * Transform the resource into an array. |
||
44 | * |
||
45 | * @param Request $request |
||
46 | * |
||
47 | * @return array |
||
48 | */ |
||
49 | 5 | public function toArray($request): array |
|
54 |