예제 #1
0
 /**
  * @param Driver $driver
  * @param DriverRegisterDTO $driverDTO
  * @throws \Exception
  * @return Driver
  */
 public function registerDTOToDriver(DriverRegisterDTO $driverDTO, Driver $driver)
 {
     $driver->updateDriverData($driverDTO->gender, $driverDTO->firstname, $driverDTO->lastname, $driverDTO->telephone, $this->addressAssembler->addressLookaheadDTOtoAddress($driverDTO->lookaheadaddress), $driverDTO->licenceNumber, $driverDTO->driverCategory, $driverDTO->wheelChairAttendance, $driverDTO->title, $driverDTO->email, $driverDTO->entryDate, $driverDTO->birthday, $driverDTO->extraMinutes, $driverDTO->details, $driverDTO->operationWish, $driverDTO->fax, $driverDTO->contradictVehicleCategories);
     return $driver;
 }