1 | <?php |
||
24 | final class Customer implements CreatableFromArray, ContainsMetadata |
||
25 | { |
||
26 | use LivemodeTrait, MetadataTrait; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $id; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | private $accountBalance; |
||
37 | |||
38 | /** |
||
39 | * @var \DateTimeImmutable |
||
40 | */ |
||
41 | private $createdAt; |
||
42 | |||
43 | /** |
||
44 | * @var ?Currency |
||
45 | */ |
||
46 | private $currency; |
||
47 | |||
48 | /** |
||
49 | * @var string |
||
50 | */ |
||
51 | private $defaultSourceId; |
||
52 | |||
53 | /** |
||
54 | * @var bool |
||
55 | */ |
||
56 | private $delinquent; |
||
57 | |||
58 | /** |
||
59 | * @var ?string |
||
60 | */ |
||
61 | private $description; |
||
62 | |||
63 | /** |
||
64 | * @var array |
||
65 | */ |
||
66 | private $discount; |
||
67 | |||
68 | /** |
||
69 | * @var string |
||
70 | */ |
||
71 | private $email; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | */ |
||
76 | private $invoicePrefix; |
||
77 | |||
78 | /** |
||
79 | * @var ?InvoiceSettings |
||
80 | */ |
||
81 | private $invoiceSettings; |
||
82 | |||
83 | /** |
||
84 | * @var ?Shipping |
||
85 | */ |
||
86 | private $shipping; |
||
87 | |||
88 | /** |
||
89 | * @var SourceCollection |
||
90 | */ |
||
91 | private $sources; |
||
92 | |||
93 | /** |
||
94 | * @var SubscriptionCollection |
||
95 | */ |
||
96 | private $subscriptions; |
||
97 | |||
98 | /** |
||
99 | * @var TaxInfo |
||
100 | */ |
||
101 | private $taxInfo; |
||
102 | |||
103 | /** |
||
104 | * @var TaxInfoVerification |
||
105 | */ |
||
106 | private $taxInfoVerification; |
||
107 | |||
108 | 5 | private function __construct() |
|
111 | |||
112 | 5 | public static function createFromArray(array $data): self |
|
144 | |||
145 | 1 | public function getId(): string |
|
149 | |||
150 | 1 | public function getAccountBalance(): int |
|
154 | |||
155 | 1 | public function getCreatedAt(): \DateTimeImmutable |
|
159 | |||
160 | 1 | public function getCurrency(): ?Currency |
|
164 | |||
165 | 1 | public function getDefaultSource(): ?Source |
|
179 | |||
180 | public function getDefaultSourceId(): ?string |
||
184 | |||
185 | public function hasDefaultSource(): bool |
||
189 | |||
190 | 1 | public function isDelinquent(): bool |
|
194 | |||
195 | 1 | public function getDescription(): ?string |
|
199 | |||
200 | 1 | public function getDiscount(): ?array |
|
204 | |||
205 | 1 | public function getEmail(): ?string |
|
209 | |||
210 | 1 | public function getInvoicePrefix(): ?string |
|
214 | |||
215 | 1 | public function getInvoiceSettings(): ?InvoiceSettings |
|
219 | |||
220 | public function getShipping(): ?Shipping |
||
224 | |||
225 | 1 | public function getSources(): SourceCollection |
|
229 | |||
230 | 1 | public function getSubscriptions(): SubscriptionCollection |
|
234 | |||
235 | 1 | public function getLatestSubscription(): ?Subscription |
|
244 | |||
245 | 1 | public function getTaxInfo(): ?TaxInfo |
|
249 | |||
250 | 1 | public function getTaxInfoVerification(): ?TaxInfoVerification |
|
254 | } |
||
255 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..