Non-numeric values will result in an exception.
Example:
$point->setLongitude(-83.732124);
public setLongitude ( float | integer $longitude ) : |
||
$longitude | float | integer | The new longitude value |
return |
/** * @expectedException InvalidArgumentException */ public function testInvalidTypeLongitude() { $point = new GeoPoint(1.1, 2.2); $point->setLongitude('bar'); }