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 ?string |
||
74 | */ |
||
75 | private $onBehalfOfId; |
||
76 | |||
77 | /** |
||
78 | * @var ?string |
||
79 | */ |
||
80 | private $paymentMethodId; |
||
81 | |||
82 | /** |
||
83 | * @var array |
||
84 | */ |
||
85 | private $paymentMethodTypes; |
||
86 | |||
87 | /** |
||
88 | * @var string |
||
89 | */ |
||
90 | private $usage; |
||
91 | |||
92 | 3 | public static function createFromArray(array $data): self |
|
113 | |||
114 | 1 | public function getId(): string |
|
118 | |||
119 | 1 | public function getApplicationId(): ?string |
|
123 | |||
124 | 1 | public function getCancellationReason(): ?string |
|
128 | |||
129 | 1 | public function getClientSecret(): ?string |
|
133 | |||
134 | 1 | public function getCreatedAt(): \DateTimeInterface |
|
138 | |||
139 | 1 | public function getCustomerId(): ?string |
|
143 | |||
144 | 1 | public function getDescription(): ?string |
|
148 | |||
149 | 1 | public function getOnBehalfOfId(): ?string |
|
153 | |||
154 | 1 | public function getPaymentMethodId(): ?string |
|
158 | |||
159 | 1 | public function getPaymentMethodTypes(): array |
|
163 | |||
164 | 1 | public function getUsage(): string |
|
168 | } |
||
169 |
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..