Mejoras en Facturacion
This commit is contained in:
@ -8,14 +8,14 @@ class Terreno implements JsonSerializable
|
||||
{
|
||||
public float $superficie;
|
||||
public float $valor;
|
||||
public ?DateTimeInterface $date;
|
||||
public ?DateTimeInterface $fecha;
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return [
|
||||
'superficie' => $this->superficie,
|
||||
'valor' => $this->valor,
|
||||
'date' => $this->date?->format('Y-m-d')
|
||||
'date' => $this->fecha?->format('Y-m-d')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user