Guardar UF en DB

This commit is contained in:
Juan Pablo Vial
2025-05-05 15:40:55 -04:00
parent db6445bcf3
commit ebe31a3d3d
3 changed files with 132 additions and 10 deletions

19
app/src/Model/UF.php Normal file
View File

@ -0,0 +1,19 @@
<?php
namespace Incoviba\Model;
use DateTimeInterface;
use Incoviba\Common\Ideal;
class UF extends Ideal\Model
{
public DateTimeInterface $fecha;
public ?float $valor;
public function jsonSerialize(): array
{
return [
'fecha' => $this->fecha,
'valor' => $this->valor
];
}
}