/** * @param $id * @return CustomerBankAccount */ public function getCustomerBankAccount($id) { $account = new CustomerBankAccount(); $account->fromArray($this->get(self::ENDPOINT_CUSTOMER_BANK, [], $id)); return $account; }
public function fromArray($data) { parent::fromArray($data); $this->setCreatedAt(new \DateTime($this->getCreatedAt())); }