Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
OriginPriorityConfigurationResource
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 toArray
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Domain\Category\Resources;
4
5use Illuminate\Http\Request;
6use Illuminate\Http\Resources\Json\JsonResource;
7
8use Domain\Category\Resources\FamilyResource;
9
10/**
11 * @property int $id
12 * @property string $name
13 * @property string $priority_field
14 * @property string $priority_order
15 */
16class OriginPriorityConfigurationResource extends JsonResource
17{
18
19    public function toArray(Request $request): array
20    {
21        return [
22            'id'             => $this->id,
23            'name'           => $this->name,
24            'priority_field' => $this->priority_field,
25            'priority_order' => $this->priority_order,
26        ];
27    }
28
29}