Documentación de Proyecto Sincro

Secundario implements JsonSerializable

Entidad que representa a la tabla Secundario del sistema

Tags
requires

PHP 8.0 Uso de tipado de propiedades.

Table of Contents

Interfaces

JsonSerializable

Properties

$centro  : int
$cif  : string
$correcto  : int
$fat  : float
$fecha  : mixed
$gss  : float
$id  : int
$moisture  : float
$primario  : mixed
$sts  : mixed
$tiposec  : int
$valor  : float
$valort  : string

Methods

equals()  : bool
fromArray()  : self
Constructor de secundario desde un array
hashCode()  : string
Creacion de hashCode para este objeto
jsonSerialize()  : array<string|int, mixed>
Construccion de json de la clase
__construct()  : mixed

Properties

Methods

equals()

public equals(mixed $obj) : bool
Parameters
$obj : mixed

: objeto a comparar

Return values
bool —

: si el objeto es de la misma clase y tienen mismo hashcode

fromArray()

Constructor de secundario desde un array

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>

: datos provenientes de BD para construir secundario

Return values
self —

nuevo secundario

hashCode()

Creacion de hashCode para este objeto

public hashCode() : string
Tags
see
hash()

y sha256

Return values
string —

hashcode generado

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, int $tiposec, mixed $primario, float $valor, mixed $fecha, int $centro, string $cif, float $fat, float $gss, float $moisture, int $correcto, string $valort, mixed $sts) : mixed
Parameters
$id : int
$tiposec : int
$primario : mixed
$valor : float
$fecha : mixed
$centro : int
$cif : string
$fat : float
$gss : float
$moisture : float
$correcto : int
$valort : string
$sts : mixed

        
On this page

Search results