/**
  * Sets the distance matrix request sensor.
  *
  * @param boolean $sensor TRUE if the distance matrix request has a sensor else FALSE.
  *
  * @throws \Ivory\GoogleMap\Exception\DistanceMatrixException If the sensor flag is not valid.
  */
 public function setSensor($sensor)
 {
     if (!is_bool($sensor)) {
         throw DistanceMatrixException::invalidDistanceMatrixRequestSensor();
     }
     $this->sensor = $sensor;
 }