Subtipoprimario
in package
implements
JsonSerializable
Entidad que representa a la tabla subtipoPrimario del sistema
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $centro : int
- $cif : string
- $habilitado : int
- $id : int
- $idautomata : string
- $idpesaje : string
- $maxkilos : int
- $nombre : string
- $ordinal : int
- $subSec : array<string|int, mixed>
- $tipo : int
Methods
- __construct() : mixed
- __toString() : string
- equals() : bool
- fromArray() : self
- Constructor de subtipoPrimario desde un array
- getCentro() : int
- getCif() : string
- getHabilitado() : int
- getId() : int
- getIdautomata() : string
- getIdPesaje() : string
- getMaxKilos() : int
- getNombre() : string
- getOrdinal() : int
- getSubSec() : array<string|int, mixed>
- getTipo() : int
- hashCode() : string
- Creacion de hashCode para este objeto
- jsonSerialize() : array<string|int, mixed>
- Construccion de json de la clase
Properties
$centro
public
int
$centro
$cif
public
string
$cif
$habilitado
public
int
$habilitado
$id
public
int
$id
$idautomata
public
string
$idautomata
$idpesaje
public
string
$idpesaje
$maxkilos
public
int
$maxkilos
$nombre
public
string
$nombre
$ordinal
public
int
$ordinal
$subSec
public
array<string|int, mixed>
$subSec
$tipo
public
int
$tipo
Methods
__construct()
public
__construct(int $id, string $nombre, int $tipo, string $idautomata, int $habilitado, string $pesaje, int $centro, int $maxkilos, string $cif, int $ordinal, mixed $subSec) : mixed
Parameters
- $id : int
- $nombre : string
- $tipo : int
- $idautomata : string
- $habilitado : int
- $pesaje : string
- $centro : int
- $maxkilos : int
- $cif : string
- $ordinal : int
- $subSec : mixed
__toString()
public
__toString() : string
Return values
stringequals()
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 subtipoPrimario desde un array
public
static fromArray(array<string|int, mixed> $array, array<string|int, mixed> $subSec) : self
Parameters
- $array : array<string|int, mixed>
-
: datos provenientes de BD para construir
- $subSec : array<string|int, mixed>
-
: datos de subtiposecundarios hijos
Return values
self —nuevo subtipoPrimario
getCentro()
public
getCentro() : int
Return values
intgetCif()
public
getCif() : string
Return values
stringgetHabilitado()
public
getHabilitado() : int
Return values
intgetId()
public
getId() : int
Return values
intgetIdautomata()
public
getIdautomata() : string
Return values
stringgetIdPesaje()
public
getIdPesaje() : string
Return values
stringgetMaxKilos()
public
getMaxKilos() : int
Return values
intgetNombre()
public
getNombre() : string
Return values
stringgetOrdinal()
public
getOrdinal() : int
Return values
intgetSubSec()
public
getSubSec() : array<string|int, mixed>
Return values
array<string|int, mixed>getTipo()
public
getTipo() : int
Return values
inthashCode()
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>