1 | <?php |
||
8 | class UserHydrator extends ClassMethods |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Extract values from an object |
||
13 | * |
||
14 | * @param object $object |
||
15 | * @return array |
||
16 | * @throws Exception\InvalidArgumentException |
||
17 | */ |
||
18 | public function extract($object) |
||
32 | |||
33 | /** |
||
34 | * Hydrate $object with the provided $data. |
||
35 | * |
||
36 | * @param array $data |
||
37 | * @param object $object |
||
38 | * @return UserInterface |
||
39 | * @throws Exception\InvalidArgumentException |
||
40 | */ |
||
41 | public function hydrate(array $data, $object) |
||
49 | |||
50 | protected function mapField($keyFrom, $keyTo, array $array) |
||
56 | } |
||
57 |