inmobiliaria)) { $this->inmobiliaria = $this->runFactory('inmobiliaria'); } return $this->inmobiliaria; } public function direccion(): Direccion { if (!isset($this->direccion)) { $this->direccion = $this->runFactory('direccion'); } return $this->direccion; } public function estados(): array { if (!isset($this->estados)) { $this->estados = $this->runFactory('estados'); } return $this->estados; } public function currentEstado(): Proyecto\EstadoProyecto { if (!isset($this->currentEstado)) { $this->currentEstado = $this->runFactory('currentEstado'); } return $this->currentEstado; } public function jsonSerialize(): mixed { return array_merge(parent::jsonSerialize(), [ 'inmobiliaria' => $this->inmobiliaria(), 'descripcion' => $this->descripcion, 'direccion' => $this->direccion(), 'terreno' => $this->terreno, 'superficie' => $this->superficie, 'corredor' => $this->corredor, 'pisos' => $this->pisos, 'subterraneos' => $this->subterraneos ]); } }