/**
  * @param Vehicle $vehicle
  * @return VehicleListDTO
  */
 public function toVehicleListDTO(Vehicle $vehicle)
 {
     $vehicleListDTO = new VehicleListDTO();
     $vehicleListDTO->id = $vehicle->getId();
     $vehicleListDTO->name = $vehicle->getName();
     $vehicleListDTO->licenceNumber = $vehicle->getLicenceNumber();
     $vehicleListDTO->parking = $vehicle->getParking();
     $vehicleListDTO->depot = $vehicle->getDepot()->getName();
     $vehicleListDTO->dateOfFirstRegistration = $vehicle->getDateOfFirstRegistration()->format('d.m.Y');
     $vehicleListDTO->category = $vehicle->getCategory()->getName();
     $vehicleListDTO->amountOfSeats = $vehicle->getCategory()->getAmountOfSeats();
     $vehicleListDTO->amountOfWheelChairs = $vehicle->getCategory()->getAmountOfWheelChairs();
     return $vehicleListDTO;
 }