ValueObjects\Geography\Coordinate::__toString PHP Method

__toString() public method

Returns a native string version of the Coordiantes object in format "$latitude,$longitude"
public __toString ( ) : string
return string
    public function __toString()
    {
        return \sprintf('%F,%F', $this->getLatitude()->toNative(), $this->getLongitude()->toNative());
    }

Usage Example

Example #1
0
 public function testToString()
 {
     $this->assertSame('40.829137,16.555838', $this->coordinate->__toString());
 }