Facturacion
This commit is contained in:
@ -1,8 +1,21 @@
|
||||
<?php
|
||||
namespace Incoviba\Model\Proyecto;
|
||||
|
||||
class Terreno
|
||||
use DateTimeInterface;
|
||||
use JsonSerializable;
|
||||
|
||||
class Terreno implements JsonSerializable
|
||||
{
|
||||
public float $superficie;
|
||||
public float $valor;
|
||||
public ?DateTimeInterface $date;
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return [
|
||||
'superficie' => $this->superficie,
|
||||
'valor' => $this->valor,
|
||||
'date' => $this->date?->format('Y-m-d')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user