Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 15
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
PurchaseOrderItemSeniorResource
0.00% covered (danger)
0.00%
0 / 15
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 / 15
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Domain\PurchaseOrder\Resources;
4
5use Illuminate\Http\Request;
6use Illuminate\Http\Resources\Json\JsonResource;
7
8class PurchaseOrderItemSeniorResource extends JsonResource
9{
10    /**
11     * Transform the resource into an array.
12     *
13     * @return array<string, mixed>
14     */
15    public function toArray(Request $request): array
16    {
17        return [
18            'codDer' => $this->codDer,
19            'codLot' => $this->codLot,
20            'codPro' => $this->codPro,
21            'cplIpo' => $this->cplIpo,
22            'preUni' => $this->preUni,
23            'proFor' => $this->proFor,
24            'qtdAbe' => $this->qtdAbe,
25            'qtdCan' => $this->qtdCan,
26            'qtdPed' => $this->qtdPed,
27            'qtdRec' => $this->qtdRec,
28            'seqIpo' => $this->seqIpo,
29            'uniFor' => $this->uniFor,
30            'uniMed' => $this->uniMed,
31        ];
32    }
33}