/** * @param Zone $zone * @return ZoneListDTO */ public function toZoneListDTO(Zone $zone) { $zoneListDTO = new ZoneListDTO(); $zoneListDTO->id = $zone->getId(); $zoneListDTO->name = $zone->getName(); $zoneListDTO->priority = $zone->getPriority(); return $zoneListDTO; }