/** * Hydrates a vocabulary object with the data * * @param array $data * @param Vocabulary $object * * @return Vocabulary */ public function hydrate(array $data, Vocabulary $object) { $object->setName($data['name']); $object->setIsEnabled($data['enabled']); $object->setDescription($data['description']); if (isset($data['id'])) { $object->setId($data['id']); } return $object; }