1 | <?php |
||
23 | final class Customer implements CreatableFromArray, ContainsMetadata |
||
24 | { |
||
25 | use LivemodeTrait, MetadataTrait; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $id; |
||
31 | |||
32 | /** |
||
33 | * @var int |
||
34 | */ |
||
35 | private $accountBalance; |
||
36 | |||
37 | /** |
||
38 | * @var \DateTimeImmutable |
||
39 | */ |
||
40 | private $createdAt; |
||
41 | |||
42 | /** |
||
43 | * @var ?Currency |
||
44 | */ |
||
45 | private $currency; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | private $defaultSourceId; |
||
51 | |||
52 | /** |
||
53 | * @var bool |
||
54 | */ |
||
55 | private $delinquent; |
||
56 | |||
57 | /** |
||
58 | * @var ?string |
||
59 | */ |
||
60 | private $description; |
||
61 | |||
62 | /** |
||
63 | * @var array |
||
64 | */ |
||
65 | private $discount; |
||
66 | |||
67 | /** |
||
68 | * @var string |
||
69 | */ |
||
70 | private $email; |
||
71 | |||
72 | /** |
||
73 | * @var string |
||
74 | */ |
||
75 | private $invoicePrefix; |
||
76 | |||
77 | /** |
||
78 | * @var ?InvoiceSettings |
||
79 | */ |
||
80 | private $invoiceSettings; |
||
81 | |||
82 | /** |
||
83 | * @var ?Shipping |
||
84 | */ |
||
85 | private $shipping; |
||
86 | |||
87 | /** |
||
88 | * @var SourceCollection |
||
89 | */ |
||
90 | private $sources; |
||
91 | |||
92 | /** |
||
93 | * @var SubscriptionCollection |
||
94 | */ |
||
95 | private $subscriptions; |
||
96 | |||
97 | /** |
||
98 | * @var TaxInfo |
||
99 | */ |
||
100 | private $taxInfo; |
||
101 | |||
102 | /** |
||
103 | * @var TaxInfoVerification |
||
104 | */ |
||
105 | private $taxInfoVerification; |
||
106 | |||
107 | 5 | private function __construct() |
|
110 | |||
111 | 5 | public static function createFromArray(array $data): self |
|
143 | |||
144 | 1 | public function getId(): string |
|
148 | |||
149 | 1 | public function getAccountBalance(): int |
|
153 | |||
154 | 1 | public function getCreatedAt(): \DateTimeImmutable |
|
158 | |||
159 | 1 | public function getCurrency(): ?Currency |
|
163 | |||
164 | 1 | public function getDefaultSource(): ?Source |
|
178 | |||
179 | public function getDefaultSourceId(): ?string |
||
183 | |||
184 | public function hasDefaultSource(): bool |
||
188 | |||
189 | 1 | public function isDelinquent(): bool |
|
193 | |||
194 | 1 | public function getDescription(): ?string |
|
198 | |||
199 | 1 | public function getDiscount(): ?array |
|
203 | |||
204 | 1 | public function getEmail(): ?string |
|
208 | |||
209 | 1 | public function getInvoicePrefix(): ?string |
|
213 | |||
214 | 1 | public function getInvoiceSettings(): ?InvoiceSettings |
|
218 | |||
219 | public function getShipping(): ?Shipping |
||
223 | |||
224 | 1 | public function getSources(): SourceCollection |
|
228 | |||
229 | 1 | public function getSubscriptions(): SubscriptionCollection |
|
233 | |||
234 | 1 | public function getTaxInfo(): ?TaxInfo |
|
238 | |||
239 | 1 | public function getTaxInfoVerification(): ?TaxInfoVerification |
|
243 | } |
||
244 |
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..