1 | <?php |
||
33 | trait EventTrait |
||
34 | { |
||
35 | use LivemodeTrait, MetadataTrait; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $id; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $apiVersion; |
||
46 | |||
47 | /** |
||
48 | * @var \DateTimeImmutable |
||
49 | */ |
||
50 | protected $createdAt; |
||
51 | |||
52 | /** |
||
53 | * @var int |
||
54 | */ |
||
55 | protected $pendingWebhooks; |
||
56 | |||
57 | /** |
||
58 | * @var ?Request |
||
59 | */ |
||
60 | protected $request; |
||
61 | |||
62 | /** |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $type; |
||
66 | |||
67 | /** |
||
68 | * @var ?Account |
||
69 | */ |
||
70 | private $account; |
||
71 | |||
72 | /** |
||
73 | * @var ?Balance |
||
74 | */ |
||
75 | private $balance; |
||
76 | |||
77 | /** |
||
78 | * @var ?BankAccount |
||
79 | */ |
||
80 | private $bankAccount; |
||
81 | |||
82 | /** |
||
83 | * @var ?Card |
||
84 | */ |
||
85 | private $card; |
||
86 | |||
87 | /** |
||
88 | * @var ?Charge |
||
89 | */ |
||
90 | private $charge; |
||
91 | |||
92 | /** |
||
93 | * @var ?Coupon |
||
94 | */ |
||
95 | private $coupon; |
||
96 | |||
97 | /** |
||
98 | * @var ?Customer |
||
99 | */ |
||
100 | private $customer; |
||
101 | |||
102 | /** |
||
103 | * @var ?Discount |
||
104 | */ |
||
105 | private $discount; |
||
106 | |||
107 | /** |
||
108 | * @var ?Invoice |
||
109 | */ |
||
110 | private $invoice; |
||
111 | |||
112 | /** |
||
113 | * @var ?InvoiceItem |
||
114 | */ |
||
115 | private $invoiceItem; |
||
116 | |||
117 | /** |
||
118 | * @var ?Plan |
||
119 | */ |
||
120 | protected $plan; |
||
121 | |||
122 | /** |
||
123 | * @var ?Product |
||
124 | */ |
||
125 | protected $product; |
||
126 | |||
127 | /** |
||
128 | * @var ?Refund |
||
129 | */ |
||
130 | protected $refund; |
||
131 | |||
132 | /** |
||
133 | * @var ?Source |
||
134 | */ |
||
135 | protected $source; |
||
136 | |||
137 | /** |
||
138 | * @var ?Subscription |
||
139 | */ |
||
140 | private $subscription; |
||
141 | |||
142 | /** |
||
143 | * @var ?Transfer |
||
144 | */ |
||
145 | private $transfer; |
||
146 | |||
147 | /** |
||
148 | * @var array |
||
149 | */ |
||
150 | private $previousAttributes; |
||
151 | |||
152 | 58 | private function __construct() |
|
155 | |||
156 | 58 | public static function createFromArray(array $data): self |
|
226 | |||
227 | public function getId(): string |
||
231 | |||
232 | public function getApiVersion(): string |
||
236 | |||
237 | public function getCreatedAt(): \DateTimeImmutable |
||
241 | |||
242 | public function getPendingWebhooks(): int |
||
246 | |||
247 | public function getRequest(): ?Request |
||
251 | |||
252 | 58 | public function getType(): string |
|
256 | } |
||
257 |
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..