Documentación de Proyecto Sincro

Subtipoprimario implements JsonSerializable

Entidad que representa a la tabla subtipoPrimario del sistema

Tags
requires

PHP 8.0 Uso de tipado de propiedades.

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

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

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

getIdautomata()

public getIdautomata() : string
Return values
string

getSubSec()

public getSubSec() : array<string|int, mixed>
Return values
array<string|int, mixed>

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>

        
On this page

Search results