22 lines
482 B
PHP
22 lines
482 B
PHP
<?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
|
|
]);
|
|
}
|
|
}
|