Google\Cloud\Datastore\GeoPoint::longitude PHP Method

longitude() public method

Example: $longitude = $point->longitude();
public longitude ( ) : float
return float
    public function longitude()
    {
        $this->checkContext('longitude', func_get_args());
        return $this->longitude;
    }

Usage Example

 /**
  * @expectedException InvalidArgumentException
  */
 public function testCheckContextLongitude()
 {
     $point = new GeoPoint(1.1, 2.2);
     $point->longitude(222.33);
 }