Subtiposecundario
in package
implements
JsonSerializable
Entidad que representa a la tabla tipoSecundario del sistema
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $centro : int
- $ceros : int
- $cif : string
- $etiqueta : string
- $habilitado : int
- $id : int
- $marcha : string
- $medida : string
- $ml : int
- $primario : int
- $primarioceros : string
- $spml : string
- $tipo : int
- $tipoSecundarioO : TipoSecundario
- $valor : string
Methods
- __toString() : string
- equals() : bool
- fromArray() : self
- Constructor de subtipoSecundario desde un array
- getcentro() : int
- getCeros() : int
- getCif() : string
- getEtiqueta() : string
- getHabilitado() : int
- getId() : int
- getMarcha() : string
- getMedida() : string
- getMl() : int
- getPrimario() : int
- getPrimariosCeros() : string
- getSpml() : string
- getTipo() : int
- getTipoSec() : TipoSecundario
- getValor() : string
- hashCode() : string
- Creacion de hashCode para este objeto
- jsonSerialize() : array<string|int, mixed>
- Construccion de json de la clase
- setId() : self
- setTipo() : self
- setTipoSec() : void
- __construct() : mixed
Properties
$centro
private
int
$centro
$ceros
private
int
$ceros
$cif
private
string
$cif
$etiqueta
private
string
$etiqueta
$habilitado
private
int
$habilitado
$id
private
int
$id
$marcha
private
string
$marcha
$medida
private
string
$medida
$ml
private
int
$ml
$primario
private
int
$primario
$primarioceros
private
string
$primarioceros
$spml
private
string
$spml
$tipo
private
int
$tipo
$tipoSecundarioO
private
TipoSecundario
$tipoSecundarioO
$valor
private
string
$valor
Methods
__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 subtipoSecundario desde un array
public
static fromArray(array<string|int, mixed> $arr, TipoSecundario $tip) : self
Parameters
- $arr : array<string|int, mixed>
-
: datos provenientes de BD para construir subtipoSecundario
- $tip : TipoSecundario
-
: tipoSecundario asociado
Return values
self —nuevo subtipoSecundario
getcentro()
public
getcentro() : int
Return values
intgetCeros()
public
getCeros() : int
Return values
intgetCif()
public
getCif() : string
Return values
stringgetEtiqueta()
public
getEtiqueta() : string
Return values
stringgetHabilitado()
public
getHabilitado() : int
Return values
intgetId()
public
getId() : int
Return values
intgetMarcha()
public
getMarcha() : string
Return values
stringgetMedida()
public
getMedida() : string
Return values
stringgetMl()
public
getMl() : int
Return values
intgetPrimario()
public
getPrimario() : int
Return values
intgetPrimariosCeros()
public
getPrimariosCeros() : string
Return values
stringgetSpml()
public
getSpml() : string
Return values
stringgetTipo()
public
getTipo() : int
Return values
intgetTipoSec()
public
getTipoSec() : TipoSecundario
Return values
TipoSecundariogetValor()
public
getValor() : string
Return values
stringhashCode()
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>setId()
public
setId(int $id) : self
Parameters
- $id : int
Return values
selfsetTipo()
public
setTipo(int $tipo) : self
Parameters
- $tipo : int
Return values
selfsetTipoSec()
public
setTipoSec(TipoSecundario $tiposec) : void
Parameters
- $tiposec : TipoSecundario
__construct()
private
__construct(int $id, string $etiqueta, int $tipo, string $medida, int $primario, int $habilitado, int $centro, string $cif, string $marcha, string $valor, int $ml, string $spml, int $ceros, string $primarioceros, TipoSecundario $tipoSecundario) : mixed
Parameters
- $id : int
- $etiqueta : string
- $tipo : int
- $medida : string
- $primario : int
- $habilitado : int
- $centro : int
- $cif : string
- $marcha : string
- $valor : string
- $ml : int
- $spml : string
- $ceros : int
- $primarioceros : string
- $tipoSecundario : TipoSecundario