<?php
namespace Incoviba\Model\Inmobiliaria;

use Incoviba\Common\Ideal;
use Incoviba\Model;

class Cuenta extends Ideal\Model
{
    public Model\Inmobiliaria $inmobiliaria;
    public Model\Banco $banco;
    public string $cuenta;

    public function jsonSerialize(): mixed
    {
        return array_merge(parent::jsonSerialize(), [
            'inmobiliaria_rut' => $this->inmobiliaria->rut,
            'banco' => $this->banco,
            'cuenta' => $this->cuenta
        ]);
    }
}
