squareetlabs /
LaravelVerifactu
| 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 RecipientResource 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
Loading history...
|
|||
| 15 | 'name' => $this->name, |
||
|
0 ignored issues
–
show
The property
name does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 16 | 'tax_id' => $this->tax_id, |
||
|
0 ignored issues
–
show
The property
tax_id does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 17 | 'country' => $this->country, |
||
|
0 ignored issues
–
show
The property
country does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 18 | 'address' => $this->address, |
||
|
0 ignored issues
–
show
The property
address does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 19 | 'email' => $this->email, |
||
|
0 ignored issues
–
show
The property
email does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 20 | 'phone' => $this->phone, |
||
|
0 ignored issues
–
show
The property
phone does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 21 | 'type' => $this->type, |
||
|
0 ignored issues
–
show
The property
type does not exist on Squareetlabs\VeriFactu\H...urces\RecipientResource. Since you implemented __get, consider adding a @property annotation.
Loading history...
|
|||
| 22 | ]; |
||
| 23 | } |
||
| 24 | } |