<?php
namespace Incoviba\Model\Venta;

use JsonSerializable;
use Incoviba\Model\Direccion;

class Datos
{
    public ?string $sexo;
    public ?string $estado_civil;
    public ?string $profesion;
    public ?Direccion $direccion;
    public ?int $telefono;
    public ?string $email;

    public function jsonSerialize(): mixed
    {
        return [
            'sexo' => $this->sexo ?? '',
            'estado_civil' => $this->estado_civil ?? '',
            'profesion' => $this->profesion ?? '',
            'direccion' => $this->direccion ?? '',
            'telefono' => $this->telefono ?? '',
            'email' => $this->email ?? ''
        ];
    }
}
