customerBookingId = $customerBookingId; $this->amount = $amount; $this->dateTime = $dateTime; $this->status = $status; $this->gateway = $gateway; $this->data = $data; } /** * @return Id */ public function getId() { return $this->id; } /** * @param Id $id */ public function setId($id) { $this->id = $id; } /** * @return Id */ public function getCustomerBooking() { return $this->customerBookingId; } /** * @param Id $customerBookingId */ public function setCustomerBooking($customerBookingId) { $this->customerBookingId = $customerBookingId; } /** * @return Price */ public function getAmount() { return $this->amount; } /** * @param Price $amount */ public function setAmount($amount) { $this->amount = $amount; } /** * @return DateTimeValue */ public function getDateTime() { return $this->dateTime; } /** * @param DateTimeValue $dateTime */ public function setDateTime($dateTime) { $this->dateTime = $dateTime; } /** * @return PaymentStatus */ public function getStatus() { return $this->status; } /** * @param PaymentStatus $status */ public function setStatus($status) { $this->status = $status; } /** * @return PaymentGateway */ public function getGateway() { return $this->gateway; } /** * @param PaymentGateway $gateway */ public function setGateway($gateway) { $this->gateway = $gateway; } /** * @return Name */ public function getGatewayTitle() { return $this->gatewayTitle; } /** * @param Name $gatewayTitle */ public function setGatewayTitle($gatewayTitle) { $this->gatewayTitle = $gatewayTitle; } /** * @return PaymentData */ public function getData() { return $this->data; } /** * @param PaymentData $data */ public function setData($data) { $this->data = $data; } /** * @return array */ public function toArray() { return [ 'id' => null !== $this->getId() ? $this->getId()->getValue() : null, 'customerBookingId' => $this->customerBookingId->getValue(), 'amount' => $this->amount->getValue(), 'gateway' => $this->gateway->getName()->getValue(), 'gatewayTitle' => null !== $this->getGatewayTitle() ? $this->getGatewayTitle()->getValue() : '', 'dateTime' => null !== $this->dateTime ? $this->dateTime->getValue()->format('Y-m-d H:i:s') : null, 'status' => $this->status->getValue(), 'data' => $this->data->getValue(), ]; } }