Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
StockInputProductsResource
0.00% covered (danger)
0.00%
0 / 8
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 / 8
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Domain\StockIO\Resources;
4
5use Illuminate\Http\Request;
6use Illuminate\Http\Resources\Json\JsonResource;
7
8
9/**
10 * @property string $production_order
11 * @property int $amount
12 * @property string $description
13 */
14class StockInputProductsResource extends JsonResource
15{
16    public function toArray(Request $request): array
17    {
18        return [
19            "item" => $this['item'],
20            "product" => $this['product'],
21            "amount" => $this['amount'],
22            "transferable_id" => $this['transferable_id'],
23            "created_at" => $this['created_at'],
24            "updated_at" => $this['updated_at'],
25        ];
26
27    }
28}