W3cubDocs

/CakePHP 4.1

Interface BatchCastingInterface

Denotes type objects capable of converting many values from their original database representation to php values.

Namespace: Cake\Database\Type

Method Summary

  • manyToPHP() public

    Returns an array of the values converted to the PHP representation of this type.

Method Detail

manyToPHP() public

manyToPHP(array $values, array $fields, \Cake\Database\DriverInterface $driver)

Returns an array of the values converted to the PHP representation of this type.

Parameters

array $values

The original array of values containing the fields to be casted

string[] $fields

The field keys to cast

\Cake\Database\DriverInterface $driver

Object from which database preferences and configuration will be extracted.

Returns

array

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/interface-Cake.Database.Type.BatchCastingInterface.html