bookingId = $data['booking_id']; $this->companyId = $data['company_id']; $this->paymentReference = $data['payment_reference'] ?? ''; } public function toArray(): array { return [ 'booking_id' => $this->bookingId, 'company_id' => $this->companyId, 'payment_reference' => $this->paymentReference, ]; } }