1 | <?php |
||
24 | final class Customer implements CreatableFromArray, ContainsMetadata |
||
25 | { |
||
26 | use LivemodeTrait; |
||
27 | use MetadataTrait; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $id; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | private $balance; |
||
38 | |||
39 | /** |
||
40 | * @var \DateTimeImmutable |
||
41 | */ |
||
42 | private $createdAt; |
||
43 | |||
44 | /** |
||
45 | * @var ?Currency |
||
46 | */ |
||
47 | private $currency; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $defaultSourceId; |
||
53 | |||
54 | /** |
||
55 | * @var bool |
||
56 | */ |
||
57 | private $delinquent; |
||
58 | |||
59 | /** |
||
60 | * @var ?string |
||
61 | */ |
||
62 | private $description; |
||
63 | |||
64 | /** |
||
65 | * @var array |
||
66 | */ |
||
67 | private $discount; |
||
68 | |||
69 | /** |
||
70 | * @var string |
||
71 | */ |
||
72 | private $email; |
||
73 | |||
74 | /** |
||
75 | * @var string |
||
76 | */ |
||
77 | private $invoicePrefix; |
||
78 | |||
79 | /** |
||
80 | * @var ?InvoiceSettings |
||
81 | */ |
||
82 | private $invoiceSettings; |
||
83 | |||
84 | /** |
||
85 | * @var ?Shipping |
||
86 | */ |
||
87 | private $shipping; |
||
88 | |||
89 | /** |
||
90 | * @var SourceCollection |
||
91 | */ |
||
92 | private $sources; |
||
93 | |||
94 | /** |
||
95 | * @var SubscriptionCollection |
||
96 | */ |
||
97 | private $subscriptions; |
||
98 | |||
99 | /** |
||
100 | * @var TaxInfo |
||
101 | */ |
||
102 | private $taxInfo; |
||
103 | |||
104 | /** |
||
105 | * @var TaxInfoVerification |
||
106 | */ |
||
107 | private $taxInfoVerification; |
||
108 | |||
109 | 5 | private function __construct() |
|
112 | |||
113 | 5 | public static function createFromArray(array $data): self |
|
145 | |||
146 | 1 | public function getId(): string |
|
150 | |||
151 | public function getAccountBalance(): int |
||
157 | |||
158 | 1 | public function getBalance(): int |
|
162 | |||
163 | 1 | public function getCreatedAt(): \DateTimeImmutable |
|
167 | |||
168 | 1 | public function getCurrency(): ?Currency |
|
172 | |||
173 | 1 | public function getDefaultSource(): ?Source |
|
187 | |||
188 | public function getDefaultSourceId(): ?string |
||
192 | |||
193 | public function hasDefaultSource(): bool |
||
197 | |||
198 | 1 | public function isDelinquent(): bool |
|
202 | |||
203 | 1 | public function getDescription(): ?string |
|
207 | |||
208 | 1 | public function getDiscount(): ?array |
|
212 | |||
213 | 1 | public function getEmail(): ?string |
|
217 | |||
218 | 1 | public function getInvoicePrefix(): ?string |
|
222 | |||
223 | 1 | public function getInvoiceSettings(): ?InvoiceSettings |
|
227 | |||
228 | public function getShipping(): ?Shipping |
||
232 | |||
233 | 1 | public function getSources(): SourceCollection |
|
237 | |||
238 | 1 | public function getSubscriptions(): SubscriptionCollection |
|
242 | |||
243 | 1 | public function getLatestSubscription(): ?Subscription |
|
252 | |||
253 | 1 | public function getTaxInfo(): ?TaxInfo |
|
257 | |||
258 | 1 | public function getTaxInfoVerification(): ?TaxInfoVerification |
|
262 | } |
||
263 |
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..