Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | class LanguageResource extends AbstractResource |
||
29 | { |
||
30 | /** |
||
31 | * Create a new resource instance. |
||
32 | * |
||
33 | * @param Language $resource |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | 7 | public function __construct(Language $resource) |
|
38 | { |
||
39 | 7 | parent::__construct($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 |
|
52 | } |
||
53 | } |
||
54 |