order = $order; $this->callbackData = $callbackData; $this->source = $source; } /** * 获取事件描述 * * @return string */ public function getDescription(): string { return "Transfer callback received for order {$this->order->id}"; } /** * 获取事件数据 * * @return array */ public function toArray(): array { return [ 'order_id' => $this->order->id, 'callback_data' => $this->callbackData, 'source' => $this->source, 'timestamp' => now()->toISOString() ]; } }