예제 #1
0
 /**
  * @param Vehicle $vehicle
  * @return VehicleRegisterDTO
  */
 public function toVehicleRegisterDTO(Vehicle $vehicle)
 {
     $vehicleDTO = new VehicleRegisterDTO();
     $vehicleDTO->id = $vehicle->getId();
     $vehicleDTO->name = $vehicle->getName();
     $vehicleDTO->companyOwned = $vehicle->getCompanyOwned();
     $vehicleDTO->licenceNumber = $vehicle->getLicenceNumber();
     $vehicleDTO->dateOfFirstRegistration = $vehicle->getDateOfFirstRegistration();
     $vehicleDTO->parking = $vehicle->getParking();
     $vehicleDTO->category = $vehicle->getCategory();
     $vehicleDTO->memo = $vehicle->getMemo();
     $vehicleDTO->managementDetails = $vehicle->getManagementDetails();
     $vehicleDTO->supervisor = $vehicle->getSupervisor();
     $vehicleDTO->depot = $vehicle->getDepot();
     return $vehicleDTO;
 }