24 lines
517 B
PHP
24 lines
517 B
PHP
<?php
|
|
namespace Incoviba\Model\Venta;
|
|
|
|
use Incoviba\Common\Ideal;
|
|
|
|
class Precio extends Ideal\Model
|
|
{
|
|
public Unidad $unidad;
|
|
public float $valor;
|
|
|
|
public array $estados;
|
|
public EstadoPrecio $current;
|
|
|
|
public function jsonSerialize(): mixed
|
|
{
|
|
return array_merge(parent::jsonSerialize(), [
|
|
'unidad' => $this->unidad,
|
|
'valor' => $this->valor,
|
|
'estado_precio' => $this->current ?? [],
|
|
'estados' => $this->estados ?? null
|
|
]);
|
|
}
|
|
}
|