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

latitude() public method

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

Usage Example

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