Reservas agregar y aprobar Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl> Reviewed-on: #30
31 lines
867 B
PHP
31 lines
867 B
PHP
<?php
|
|
namespace Incoviba\Model\Venta;
|
|
|
|
use DateTimeInterface;
|
|
use JsonSerializable;
|
|
use Incoviba\Model\Direccion;
|
|
|
|
class Datos
|
|
{
|
|
public ?string $sexo = null;
|
|
public ?string $estado_civil = null;
|
|
public ?string $profesion = null;
|
|
public ?Direccion $direccion = null;
|
|
public ?int $telefono = null;
|
|
public ?string $email = null;
|
|
public ?DateTimeInterface $fecha_nacimiento = null;
|
|
|
|
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 ?? '',
|
|
'fecha_nacimiento' => $this->fecha_nacimiento?->format('Y-m-d') ?? '',
|
|
];
|
|
}
|
|
}
|