Files
oficial/app/src/Model/Venta/Reservation/State.php

23 lines
527 B
PHP
Raw Normal View History

2025-02-18 16:02:10 -03:00
<?php
namespace Incoviba\Model\Venta\Reservation;
use DateTimeInterface;
use Incoviba\Common;
use Incoviba\Model;
class State extends Common\Ideal\Model
{
public Model\Venta\Reservation $reservation;
public DateTimeInterface $date;
2025-07-22 18:20:48 -04:00
public Model\Venta\Reservation\State\Type $type;
2025-02-18 16:02:10 -03:00
protected function jsonComplement(): array
{
return [
'reservation_id' => $this->reservation->id,
'date' => $this->date->format('Y-m-d'),
2025-07-22 18:20:48 -04:00
'type' => $this->type
2025-02-18 16:02:10 -03:00
];
}
2025-07-22 18:20:48 -04:00
}