Issues (50)

src/Http/Resources/BreakdownResource.php (11 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Squareetlabs\VeriFactu\Http\Resources;
6
7
use Illuminate\Http\Resources\Json\JsonResource;
8
9
class BreakdownResource extends JsonResource
10
{
11
    public function toArray($request): array
12
    {
13
        return [
14
            'id' => $this->id,
0 ignored issues
show
Bug Best Practice introduced by
The property id does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
15
            'tax_type' => $this->tax_type,
0 ignored issues
show
Bug Best Practice introduced by
The property tax_type does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
16
            'regime_type' => $this->regime_type,
0 ignored issues
show
Bug Best Practice introduced by
The property regime_type does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
17
            'operation_type' => $this->operation_type,
0 ignored issues
show
Bug Best Practice introduced by
The property operation_type does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
18
            'tax_rate' => $this->tax_rate,
0 ignored issues
show
Bug Best Practice introduced by
The property tax_rate does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
19
            'base_amount' => $this->base_amount,
0 ignored issues
show
Bug Best Practice introduced by
The property base_amount does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
20
            'tax_amount' => $this->tax_amount,
0 ignored issues
show
Bug Best Practice introduced by
The property tax_amount does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
21
            'equivalence_surcharge_rate' => $this->equivalence_surcharge_rate,
0 ignored issues
show
Bug Best Practice introduced by
The property equivalence_surcharge_rate does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
22
            'equivalence_surcharge_amount' => $this->equivalence_surcharge_amount,
0 ignored issues
show
Bug Best Practice introduced by
The property equivalence_surcharge_amount does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
23
            'exemption_code' => $this->exemption_code,
0 ignored issues
show
Bug Best Practice introduced by
The property exemption_code does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
24
            'exemption_description' => $this->exemption_description,
0 ignored issues
show
Bug Best Practice introduced by
The property exemption_description does not exist on Squareetlabs\VeriFactu\H...urces\BreakdownResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
25
        ];
26
    }
27
}