1 | <?php |
||
9 | class UserHydrator extends ClassMethods implements HydratorInterface |
||
|
|||
10 | { |
||
11 | /** |
||
12 | * @var ZendCryptPassword |
||
13 | */ |
||
14 | private $cryptoService; |
||
15 | |||
16 | /** |
||
17 | * @param ZendCryptPassword $cryptoService |
||
18 | * @param bool|array $underscoreSeparatedKeys |
||
19 | */ |
||
20 | public function __construct( |
||
27 | |||
28 | /** |
||
29 | * Extract values from an object |
||
30 | * |
||
31 | * @param UserEntity $object |
||
32 | * @return array |
||
33 | * @throws Exception\InvalidArgumentException |
||
34 | */ |
||
35 | public function extract($object) |
||
44 | |||
45 | /** |
||
46 | * Hydrate $object with the provided $data. |
||
47 | * |
||
48 | * @param array $data |
||
49 | * @param UserEntity $object |
||
50 | * @return UserEntity |
||
51 | * @throws Exception\InvalidArgumentException |
||
52 | */ |
||
53 | public function hydrate(array $data, $object) |
||
58 | |||
59 | /** |
||
60 | * @return ZendCryptPassword |
||
61 | */ |
||
62 | public function getCryptoService() |
||
66 | |||
67 | /** |
||
68 | * Remap an array key |
||
69 | * |
||
70 | * @param string $keyFrom |
||
71 | * @param string $keyTo |
||
72 | * @param array $array |
||
73 | * @return array |
||
74 | */ |
||
75 | protected function mapField($keyFrom, $keyTo, array $array) |
||
83 | |||
84 | /** |
||
85 | * Ensure $object is an UserEntity |
||
86 | * |
||
87 | * @param mixed $object |
||
88 | * @throws Exception\InvalidArgumentException |
||
89 | */ |
||
90 | protected function guardUserObject($object) |
||
98 | } |
||
99 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.