public function getLongitude()
{
return $this->longitude;
}
/** * Returns a new Longitude object * * @param $value * @throws InvalidNativeArgumentException */ public function __construct($value) { $value = \filter_var($value, FILTER_VALIDATE_FLOAT); if (false === $value) { throw new InvalidNativeArgumentException($value, array('float')); } // normalization process through Coordinate object $coordinate = new BaseCoordinate(array(0, $value)); $longitude = $coordinate->getLongitude(); $this->value = $longitude; }