2024-06-18
This commit is contained in:
29
app/src/Model/Inmobiliaria/Proveedor.php
Normal file
29
app/src/Model/Inmobiliaria/Proveedor.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace Incoviba\Model\Inmobiliaria;
|
||||
|
||||
use Incoviba\Common\Ideal;
|
||||
use Incoviba\Model;
|
||||
|
||||
class Proveedor extends Ideal\Model
|
||||
{
|
||||
public Model\Inmobiliaria $inmobiliaria;
|
||||
public Model\Sociedad $sociedad;
|
||||
|
||||
protected array $tipos;
|
||||
public function tipos(): array
|
||||
{
|
||||
if (!isset($this->tipos)) {
|
||||
$this->tipos = $this->runFactory('tipos');
|
||||
}
|
||||
return $this->tipos;
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return array_merge(parent::jsonSerialize(), [
|
||||
'inmobiliaria' => $this->inmobiliaria,
|
||||
'sociedad' => $this->sociedad,
|
||||
'tipos' => $this->tipos(),
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user