layoutUser
in package
implements
JsonSerializable
Entidad que representa a la tabla layoutUser del sistema
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
Methods
- __construct() : mixed
- Constructor de la clase
- equals() : bool
- fromArray() : self
- Constructor de desde un array
- getId() : mixed
- getIdUser() : mixed
- getItems() : array<string|int, mixed>
- getNombre() : mixed
- hashCode() : string
- Creacion de hashCode para este objeto
- jsonSerialize() : array<string|int, mixed>
- Construccion de json de la clase
Properties
$id
private
mixed
$id
$id_user
private
mixed
$id_user
$items
private
array<string|int, mixed>
$items
$nombre
private
mixed
$nombre
Methods
__construct()
Constructor de la clase
public
__construct(mixed $id, mixed $id_user, mixed $nombre, array<string|int, mixed> $items) : mixed
Parameters
- $id : mixed
-
: id unico de la clase
- $id_user : mixed
-
: id del usuarioWeb dueño
- $nombre : mixed
-
: nombre del layout
- $items : array<string|int, 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 desde un array
public
static fromArray(array<string|int, mixed> $data, array<string|int, mixed> $items) : self
Parameters
- $data : array<string|int, mixed>
-
: datos provenientes de BD para construir
- $items : array<string|int, mixed>
-
: Items asociados a dicho layout
Return values
self —nueva
getId()
public
getId() : mixed
getIdUser()
public
getIdUser() : mixed
getItems()
public
getItems() : array<string|int, mixed>
Return values
array<string|int, mixed>getNombre()
public
getNombre() : mixed
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>