Documentación de Proyecto Sincro

Subtiposecundario implements JsonSerializable

Entidad que representa a la tabla tipoSecundario del sistema

Tags
requires

PHP 8.0 Uso de tipado de propiedades.

see
tipoSecundario

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

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

getPrimariosCeros()

public getPrimariosCeros() : string
Return values
string

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>

setId()

public setId(int $id) : self
Parameters
$id : int
Return values
self

setTipo()

public setTipo(int $tipo) : self
Parameters
$tipo : int
Return values
self

__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

        
On this page

Search results