feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
460 changed files with 1242 additions and 20575 deletions
Showing only changes of commit 28bba8a438 - Show all commits

View File

@ -9,15 +9,22 @@ class Broker extends Common\Ideal\Model
public string $digit;
public string $name;
public ?Broker\Data $data = null;
protected ?Broker\Data $data = null;
public function data(): ?Broker\Data
{
if (!isset($this->data)) {
$this->data = $this->runFactory('data');
}
return $this->data;
}
protected function jsonComplement(): array
public function jsonSerialize(): mixed
{
return [
'rut' => $this->rut,
'digit' => $this->digit,
'name' => $this->name,
'data' => $this->data
'data' => $this->data()
];
}
}
}