public function setSensor($sensor) {
      if ($sensor == 'true' || $sensor == 'false') {
        $this->sensor = $sensor;
      }
      elseif ($sensor) {
        $this->sensor = "true";
      }
      else {
        $this->sensor = "false";
      }

      return $this;
    }
public function setSensor($sensor) {
      if ($sensor == 'true' || $sensor == 'false') {
        $this->sensor = $sensor;
      }
      elseif ($sensor) {
        $this->sensor = "true";
      }
      else {
        $this->sensor = "false";
      }

      return $this;
    }
public function setSensor ( $ sensor ) { if ( $ sensor == 'true' || $ sensor == 'false' ) { $ this -> sensor = $ sensor ; } elseif ( $ sensor ) { $ this -> sensor = "true" ; } else { $ this -> sensor = "false" ; } return $ this ; }
Set whether the request is from a device with a location sensor.

@deprecated 2.3.0 no longer required by the Google Maps API
@link       https://developers.google.com/maps/documentation/geocoding/intro#Sensor
@param      bool|string $sensor boolean or 'true'/'false' string
@return     GoogleMapsGeocoder
Set whether the request is from a device with a location sensor .