PluginProbe
Billingo Official for WooCommerce / 4.2.9
Billingo Official for WooCommerce v4.2.9
4.3.3 4.3.2 trunk 0.0.2 1.0.0 2.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 All 82 releases
billingo / src / Service / BillingoResponse.php

BillingoResponse.php in Billingo Official for WooCommerce 4.2.9, at src/Service/BillingoResponse.php

50 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace App\Billingo\Service;
4
5 use App\Billingo\Models\BillingoModel;
6
7 class BillingoResponse
8 {
9
10 public function __construct(
11 private readonly string $reasonPhrase,
12 private readonly int $statusCode,
13 private readonly array $meta = [],
14 private array|BillingoCollection|BillingoModel $data = [],
15 private readonly array $errors = [],
16 )
17 {
18 }
19
20 public function getMeta(): array
21 {
22 return $this->meta;
23 }
24
25 public function getReasonPhrase(): string
26 {
27 return $this->reasonPhrase;
28 }
29
30 public function getStatusCode(): int
31 {
32 return $this->statusCode;
33 }
34
35 public function getData(): array|BillingoCollection|BillingoModel
36 {
37 return $this->data;
38 }
39
40 public function setData(array|BillingoCollection|BillingoModel $data): void
41 {
42 $this->data = $data;
43 }
44
45 public function getErrors(): array
46 {
47 return $this->errors;
48 }
49 }
50