Files
oficial/app/src/Model/Region.php

25 lines
538 B
PHP
Raw Normal View History

<?php
namespace Incoviba\Model;
use Incoviba\Common\Ideal\Model;
class Region extends Model
{
public string $descripcion;
public string $numeral;
public ?int $numeracion;
public function jsonSerialize(): mixed
{
return array_merge(parent::jsonSerialize(), [
'descripcion' => $this->descripcion,
'numeral' => $this->numeral,
'numeracion' => $this->numeracion ?? 0
]);
}
2023-07-28 16:22:20 -04:00
public function __toString(): string
{
return $this->descripcion;
}
}