Example #1
0
 /**
  * @param $gender
  * @param $firstname
  * @param $lastname
  * @param $telephone
  * @param Address $address
  * @param $licenceNumber
  * @param DriverCategory $driverCategory
  * @param bool $wheelChairAttendance
  * @param $title
  * @param null $email
  * @param null $entryDate
  * @param null $birthday
  * @param null $extraMinutes
  * @param null $details
  * @param null $operationWish
  * @param null $fax
  * @param VehicleCategory[] $contradictVehicleCategories
  * @return Driver
  */
 public static function registerDriver($gender, $firstname, $lastname, $telephone, Address $address, $licenceNumber, DriverCategory $driverCategory, $wheelChairAttendance = true, $title = null, $email = null, $entryDate = null, $birthday = null, $extraMinutes = null, $details = null, $operationWish = null, $fax = null, $contradictVehicleCategories)
 {
     $driver = new Driver($gender, $firstname, $lastname, $telephone, $address, $title, $email, $entryDate, $birthday, $extraMinutes, $details, $fax);
     $driver->setLicenceNumber($licenceNumber);
     $driver->setDriverCategory($driverCategory);
     $driver->setWheelChairAttendance($wheelChairAttendance);
     $driver->setOperationWish($operationWish);
     $driver->setContradictVehicleCategories($contradictVehicleCategories);
     return $driver;
 }