/** * @param POIKeyword $poiKeyword * @return VehicleCategoryListDTO */ public function toPoiKeywordListDTO(POIKeyword $poiKeyword) { $poiKeywordListDTO = new VehicleCategoryListDTO(); $poiKeywordListDTO->id = $poiKeyword->getId(); $poiKeywordListDTO->name = $poiKeyword->getName(); return $poiKeywordListDTO; }