Mental Space

Hydrator
in package

FinalYes

Hydrator.

Table of Contents

Methods

hydrate()  : array<string|int, T>
Hydrate a collection of objects with data from an array with multiple items.

Methods

hydrate()

Hydrate a collection of objects with data from an array with multiple items.

public hydrate(array<string|int, mixed> $rows, T> $class) : array<string|int, T>
Parameters
$rows : array<string|int, mixed>

The items

$class : T>

The FQN

Tags
template

T

Return values
array<string|int, T>

The list of object


        
On this page

Search results