Esempio n. 1
0
 /**
  * @param Driver $driver
  * @return DriverRegisterDTO
  */
 public function driverToDriverRegisterDTO(Driver $driver)
 {
     $driverDTO = new DriverRegisterDTO();
     $driverDTO->person_id = $driver->getId();
     $driverDTO->gender = $driver->getGender();
     $driverDTO->title = $driver->getTitle();
     $driverDTO->firstname = $driver->getFirstname();
     $driverDTO->lastname = $driver->getLastname();
     $driverDTO->telephone = $driver->getTelephone();
     $driverDTO->fax = $driver->getFax();
     $driverDTO->email = $driver->getEmail();
     $driverDTO->entryDate = $driver->getEntryDate();
     $driverDTO->birthday = $driver->getBirthday();
     $driverDTO->extraMinutes = $driver->getExtraMinutes();
     $driverDTO->details = $driver->getDetails();
     $driverDTO->licenceNumber = $driver->getLicenceNumber();
     $driverDTO->wheelChairAttendance = $driver->getWheelChairAttendance();
     $driverDTO->operationWish = $driver->getOperationWish();
     $driverDTO->driverCategory = $driver->getDriverCategory();
     $driverDTO->lookaheadaddress = $this->addressAssembler->addressToAddressLookaheadDTO($driver->getAddress());
     $driverDTO->contradictVehicleCategories = $driver->getContradictVehicleCategories();
     return $driverDTO;
 }