/**
* @return array
*/
public function toArray(): array
{
return [
'id' => $this->customer->getId(),
'account' => [
'id' => $this->customer->getAccount()->getId(),
],
'accountNumber' => $this->customer->getAccountNumber(),
'created' => $this->customer->getCreatedAsString(),
'updated' => $this->customer->getUpdatedAsString(),
];
}
/**
* @return array
*/
public function toArray(): array
{
return [
'id' => $this
->customer
->getId()
,
'account' => [
'id' => $this
->customer
->getAccount()
->getId()
,
],
'accountNumber' => $this
->customer
->getAccountNumber()
,
'created' => $this
->customer
->getCreatedAsString()
,
'updated' => $this
->customer
->getUpdatedAsString()
,
];
}