/** * @return array */ public function toArray() { $arr = parent::toArray(); if (array_key_exists("payment", $arr)) { unset($arr["payment"]); } if ($this->getPayment()) { $arr["links"]["payment"] = $this->getPayment()->getId(); } return $arr; }
/** * @return array */ public function toArray() { $arr = parent::toArray(); if (array_key_exists("customer", $arr)) { unset($arr["customer"]); } if ($this->getCustomer() instanceof Customer) { $arr["links"]["customer"] = $this->getCustomer()->getId(); } if (array_key_exists("mandates", $arr)) { unset($arr["mandates"]); } return $arr; }
/** * @return array */ public function toArray() { $arr = parent::toArray(); if (array_key_exists("customerBankAccount", $arr)) { unset($arr["customerBankAccount"]); } if ($this->getCustomerBankAccount() instanceof CustomerBankAccount) { $arr["links"]["customer_bank_account"] = $this->getCustomerBankAccount()->getId(); } if (array_key_exists("creditor", $arr)) { unset($arr["creditor"]); } if ($this->getCreditor()) { $arr["links"]["creditor"] = $this->getCreditor()->getId(); } return $arr; }
/** * @return array */ public function toArray() { $arr = parent::toArray(); if (array_key_exists("mandate", $arr)) { unset($arr["mandate"]); } if ($this->getMandate()) { $arr["links"]["mandate"] = $this->getMandate()->getId(); } return $arr; }
/** * @return array */ public function toArray() { $arr = parent::toArray(); if (array_key_exists("bankAccounts", $arr)) { unset($arr["bankAccounts"]); } return $arr; }