示例#1
0
 /**
  * @param $driverID int
  * @param $latitude double
  * @param $longitude double
  * @param $regionID int
  * @param null $firstName string
  * @param null $middleName string
  * @param null $lastName string
  * @param null $email string
  * @param null $phoneNumber string
  */
 public function __construct($driverID, $latitude, $longitude, $regionID, $firstName = null, $middleName = null, $lastName = null, $email = null, $phoneNumber = null)
 {
     parent::__construct($latitude, $longitude, $regionID);
     $this->driverID = $driverID;
     $this->firstName = $firstName;
     $this->middleName = $middleName;
     $this->lastName = $lastName;
     $this->email = $email;
     $this->phoneNumber = $phoneNumber;
 }
示例#2
0
 /**
  * @param $shipmentID int
  * @param $latitude double
  * @param $longitude double
  * @param $regionID int
  * @param $requestedDateTime DateTime
  */
 public function __construct($shipmentID, $latitude, $longitude, $regionID, $requestedDateTime)
 {
     parent::__construct($latitude, $longitude, $regionID);
     $this->shipmentID = $shipmentID;
     $this->requestedDateTime = $requestedDateTime;
 }