/** * @param $gender * @param $firstname * @param $lastname * @param $telephone * @param Address $address * @param null $title * @param bool $isInWheelChair * @param bool $gotMonthlyBilling * @param null $email * @param null $entryDate * @param null $birthday * @param null $extraMinutes * @param null $details * @param null $notice * @param bool $isAuthorizedToRide * @return Passenger */ public static function registerPassenger($gender, $firstname, $lastname, $telephone, Address $address, $title = null, $isInWheelChair = false, $gotMonthlyBilling = false, $email = null, $entryDate = null, $birthday = null, $extraMinutes = null, $details = null, $notice = null, $isAuthorizedToRide = true) { $passenger = new Passenger($gender, $firstname, $lastname, $telephone, $address, $title, $email, $entryDate, $birthday, $extraMinutes, $details, $isAuthorizedToRide); $passenger->setIsInWheelChair($isInWheelChair); $passenger->setHasMonthlyBilling($gotMonthlyBilling); $passenger->setNotice($notice); return $passenger; }