1 | <?php |
||
5 | class ArrayUtil |
||
6 | { |
||
7 | |||
8 | |||
9 | /** |
||
10 | * Given an array of strings, look in the class, or $data for a matching property/key. |
||
11 | * Can also supply nested properties using ->, e.g. parent->name |
||
12 | * @param string[] $params |
||
13 | * @param mixed $model |
||
14 | * @param mixed[] $data |
||
15 | * @return mixed[] |
||
16 | */ |
||
17 | public static function populateArrayFromObject(array $params, $model, array $data = []) |
||
47 | } |
||
48 |