1 | <?php |
||
20 | final class SetupIntent extends Intent implements CreatableFromArray, ContainsMetadata |
||
21 | { |
||
22 | use LivemodeTrait; |
||
23 | use MetadataTrait; |
||
24 | |||
25 | const CANCELLATION_REASON_ABANDONED = 'abandoned'; |
||
26 | const CANCELLATION_REASON_REQUESTED_BY_CUSTOMER = 'requested_by_customer'; |
||
27 | const CANCELLATION_REASON_DUPLICATE = 'duplicate'; |
||
28 | |||
29 | const USAGE_ON_SESSION = 'on_session'; |
||
30 | const USAGE_OFF_SESSION = 'off_session'; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $id; |
||
36 | |||
37 | /** |
||
38 | * @var ?string |
||
39 | */ |
||
40 | private $applicationId; |
||
41 | |||
42 | /** |
||
43 | * @var ?string |
||
44 | */ |
||
45 | private $cancellationReason; |
||
46 | |||
47 | /** |
||
48 | * @var ?string |
||
49 | */ |
||
50 | private $clientSecret; |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | */ |
||
55 | private $confirmationMethod; |
||
56 | |||
57 | /** |
||
58 | * @var \DateTimeImmutable |
||
59 | */ |
||
60 | private $createdAt; |
||
61 | |||
62 | /** |
||
63 | * @var string |
||
64 | */ |
||
65 | private $customerId; |
||
66 | |||
67 | /** |
||
68 | * @var string |
||
69 | */ |
||
70 | private $description; |
||
71 | |||
72 | /** |
||
73 | * @var ?LastSetupError |
||
74 | */ |
||
75 | private $lastSetupError; |
||
76 | |||
77 | /** |
||
78 | * @var ?string |
||
79 | */ |
||
80 | private $onBehalfOfId; |
||
81 | |||
82 | /** |
||
83 | * @var ?string |
||
84 | */ |
||
85 | private $paymentMethodId; |
||
86 | |||
87 | /** |
||
88 | * @var array |
||
89 | */ |
||
90 | private $setupMethodTypes; |
||
91 | |||
92 | /** |
||
93 | * @var string |
||
94 | */ |
||
95 | private $usage; |
||
96 | |||
97 | 3 | public static function createFromArray(array $data): self |
|
119 | |||
120 | 1 | public function getId(): string |
|
124 | |||
125 | 1 | public function getApplicationId(): ?string |
|
129 | |||
130 | 1 | public function getCancellationReason(): ?string |
|
134 | |||
135 | 1 | public function getClientSecret(): ?string |
|
139 | |||
140 | 1 | public function getCreatedAt(): \DateTimeInterface |
|
144 | |||
145 | 1 | public function getCustomerId(): ?string |
|
149 | |||
150 | 1 | public function getDescription(): ?string |
|
154 | |||
155 | 1 | public function getLastSetupError(): ?LastSetupError |
|
159 | |||
160 | 1 | public function getOnBehalfOfId(): ?string |
|
164 | |||
165 | 1 | public function getPaymentMethodId(): ?string |
|
169 | |||
170 | 1 | public function getPaymentMethodTypes(): array |
|
174 | |||
175 | 1 | public function getUsage(): string |
|
179 | } |
||
180 |
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..