Files
oficial/app/src/Model/Proyecto/Broker.php

31 lines
626 B
PHP
Raw Normal View History

2025-02-18 16:02:10 -03:00
<?php
namespace Incoviba\Model\Proyecto;
use Incoviba\Common;
class Broker extends Common\Ideal\Model
{
public int $rut;
public string $digit;
public string $name;
2025-02-24 12:40:40 -03:00
protected ?Broker\Data $data = null;
public function data(): ?Broker\Data
{
if (!isset($this->data)) {
$this->data = $this->runFactory('data');
}
return $this->data;
}
2025-02-18 16:02:10 -03:00
2025-02-24 12:40:40 -03:00
public function jsonSerialize(): mixed
2025-02-18 16:02:10 -03:00
{
return [
'rut' => $this->rut,
'digit' => $this->digit,
'name' => $this->name,
2025-02-24 12:40:40 -03:00
'data' => $this->data()
2025-02-18 16:02:10 -03:00
];
}
2025-02-24 12:40:40 -03:00
}