Exemplo n.º 1
0
 /**
  * @param Passenger $passenger
  * @return PassengerRegisterDTO
  */
 public function passengerToPassengerRegisterDTO(Passenger $passenger)
 {
     $passengerDTO = new PassengerRegisterDTO();
     $passengerDTO->person_id = $passenger->getId();
     $passengerDTO->gender = $passenger->getGender();
     $passengerDTO->title = $passenger->getTitle();
     $passengerDTO->firstname = $passenger->getFirstname();
     $passengerDTO->lastname = $passenger->getLastname();
     $passengerDTO->telephone = $passenger->getTelephone();
     $passengerDTO->email = $passenger->getEmail();
     $passengerDTO->entryDate = $passenger->getEntryDate();
     $passengerDTO->birthday = $passenger->getBirthday();
     $passengerDTO->extraMinutes = $passenger->getExtraMinutes();
     $passengerDTO->details = $passenger->getDetails();
     $passengerDTO->contradictVehicleCategories = $passenger->getContradictVehicleCategories();
     $passengerDTO->personCategories = $passenger->getPersonCategories();
     $passengerDTO->isInWheelChair = $passenger->getIsInWheelChair();
     $passengerDTO->hasMonthlyBilling = $passenger->getHasMonthlyBilling();
     $passengerDTO->notice = $passenger->getNotice();
     $passengerDTO->handicaps = $passenger->getHandicaps();
     $passengerDTO->insurances = $passenger->getInsurances();
     $passengerDTO->isAuthorizedToRide = $passenger->getisAuthorizedToRide();
     $passengerDTO->building = $passenger->getAddress()->getBuilding();
     $passengerDTO->lookaheadaddress = $this->addressAssembler->addressToAddressLookaheadDTO($passenger->getAddress());
     $passengerDTO->custodian = $passenger->getCustodian();
     return $passengerDTO;
 }