Location\Coordinate::format PHP Method

format() public method

public format ( Location\Formatter\Coordinate\FormatterInterface $formatter ) : mixed
$formatter Location\Formatter\Coordinate\FormatterInterface
return mixed
    public function format(FormatterInterface $formatter)
    {
        return $formatter->format($this);
    }

Usage Example

Beispiel #1
0
 /**
  * @covers Location\Coordinate::format
  */
 public function testFormat()
 {
     $this->assertEquals("52.50000 13.50000", $this->coordinate->format(new DecimalDegrees()));
 }