Documentación de Proyecto Sincro

TipoSecundario implements JsonSerializable

Entidad que representa a la tabla tipoSecundario del sistema

Tags
requires

PHP 8.0 Uso de tipado de propiedades.

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

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
see
JsonSerializable

Documentacion oficial de PHP

used-by

api.php/json_encode() Para el tratamiento de mensajes

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

        
On this page

Search results