Files
oficial/app/src/Model/Venta/Entrega.php

22 lines
482 B
PHP
Raw Normal View History

2023-07-28 16:22:20 -04:00
<?php
namespace Incoviba\Model\Venta;
use DateTimeInterface;
use Incoviba\Common\Ideal;
class Entrega extends Ideal\Model
{
public DateTimeInterface $fecha;
public ?Pago $operacion;
public ?Pago $reserva;
public function jsonSerialize(): mixed
{
return array_merge(parent::jsonSerialize(), [
'fecha' => $this->fecha->format('Y-m-d'),
'operacion' => $this->operacion,
'reserva' => $this->reserva
]);
}
}