order = $order; $this->newVariation = $newVariation; $this->oldVariation = $oldVariation; $this->otherInfo = is_array($otherInfo) ? $otherInfo : []; // Load necessary relationships $this->order->load('customer', 'shipping_address', 'billing_address'); } public function toArray(): array { return [ 'order' => $this->order->toArray(), 'customer' => $this->order->customer ? $this->order->customer->toArray() : [], 'new_variation' => $this->newVariation->toArray(), 'old_variation' => $this->oldVariation->toArray(), 'other_info' => $this->otherInfo ]; } public function getActivityEventModel() { return null; } public function shouldCreateActivity(): bool { return false; } }