TipoSecundario
in package
implements
JsonSerializable
Entidad que representa a la tabla tipoSecundario del sistema
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $centro : int
- $cif : string
- $datalogger : string
- $habilitado : int
- $id : int
- $nombre : string
Methods
- fromArray() : self
- Constructor de TipoSecundario desde un array
- jsonSerialize() : array<string|int, mixed>
- Construccion de json de la clase
- __construct() : mixed
Properties
$centro
private
int
$centro
$cif
private
string
$cif
$datalogger
private
string
$datalogger
$habilitado
private
int
$habilitado
$id
private
int
$id
$nombre
private
string
$nombre
Methods
fromArray()
Constructor de TipoSecundario desde un array
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
-
: datos provenientes de BD para construir
Return values
self —nuevo TipoSecundario
jsonSerialize()
Construccion de json de la clase
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>__construct()
private
__construct(int $id, string $nombre, string $datalogger, int $habilitado, int $centro, string $cif) : mixed
Parameters
- $id : int
- $nombre : string
- $datalogger : string
- $habilitado : int
- $centro : int
- $cif : string