Guardar UF en DB
This commit is contained in:
19
app/src/Model/UF.php
Normal file
19
app/src/Model/UF.php
Normal 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
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user