1: <?php
2: /**
3: * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
4: * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
5: *
6: * Licensed under The MIT License
7: * For full copyright and license information, please see the LICENSE.txt
8: * Redistributions of files must retain the above copyright notice.
9: *
10: * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
11: * @link https://cakephp.org CakePHP(tm) Project
12: * @since 3.6.0
13: * @license https://opensource.org/licenses/mit-license.php MIT License
14: */
15: namespace Cake\Database\Type;
16:
17: use Cake\Database\Driver;
18:
19: /**
20: * Denotes type objects capable of converting many values from their original
21: * database representation to php values.
22: */
23: interface BatchCastingInterface
24: {
25: /**
26: * Returns an array of the values converted to the PHP representation of
27: * this type.
28: *
29: * @param array $values The original array of values containing the fields to be casted
30: * @param string[] $fields The field keys to cast
31: * @param \Cake\Database\Driver $driver Object from which database preferences and configuration will be extracted.
32: * @return array
33: */
34: public function manyToPHP(array $values, array $fields, Driver $driver);
35: }
36: