BatchCastingInterface
in
Denotes type objects capable of converting many values from their original database representation to php values.
Table of Contents
Methods
- manyToPHP() : array<string, mixed>
- Returns an array of the values converted to the PHP representation of this type.
Methods
manyToPHP()
Returns an array of the values converted to the PHP representation of this type.
public
manyToPHP(array<string|int, mixed> $values, array<string|int, string> $fields, DriverInterface $driver) : array<string, mixed>
Parameters
- $values : array<string|int, mixed>
-
The original array of values containing the fields to be casted
- $fields : array<string|int, string>
-
The field keys to cast
- $driver : DriverInterface
-
Object from which database preferences and configuration will be extracted.