Facturacion
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
<?php
|
||||
namespace Incoviba\Model\Proyecto;
|
||||
|
||||
class Superficie
|
||||
use JsonSerializable;
|
||||
|
||||
class Superficie implements JsonSerializable
|
||||
{
|
||||
public float $sobre_nivel;
|
||||
public float $bajo_nivel;
|
||||
@ -10,4 +12,13 @@ class Superficie
|
||||
{
|
||||
return $this->bajo_nivel + $this->sobre_nivel;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return [
|
||||
'sobre_nivel' => $this->sobre_nivel,
|
||||
'bajo_nivel' => $this->bajo_nivel,
|
||||
'total' => $this->total()
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user