/** * @param ImportedDepartment $source * @param Department $destination * @return mixed */ public function map($source, $destination) { $destination->setReservitId($source->getReservitId()); $translations = array('fr' => $source->getFr(), 'en' => $source->getEn(), 'de' => $source->getDe(), 'es' => $source->getEs(), 'it' => $source->getIt(), 'nl' => $source->getNl()); $this->translateProperty($destination, 'name', $translations); return $destination; }