Secundario
in package
implements
JsonSerializable
Entidad que representa a la tabla Secundario del sistema
Tags
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
$centro
private
int
$centro
$cif
private
string
$cif
$correcto
private
int
$correcto
$fat
private
float
$fat
$fecha
private
mixed
$fecha
$gss
private
float
$gss
$id
private
int
$id
$moisture
private
float
$moisture
$primario
private
mixed
$primario
$sts
private
mixed
$sts
$tiposec
private
int
$tiposec
$valor
private
float
$valor
$valort
private
string
$valort
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
Return values
string —hashcode generado
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, 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