23 lines
527 B
PHP
23 lines
527 B
PHP
<?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;
|
|
public Model\Venta\Reservation\State\Type $type;
|
|
|
|
protected function jsonComplement(): array
|
|
{
|
|
return [
|
|
'reservation_id' => $this->reservation->id,
|
|
'date' => $this->date->format('Y-m-d'),
|
|
'type' => $this->type
|
|
];
|
|
}
|
|
}
|