| 1 | <?php |
||
| 11 | class KmlFormatter { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Builds and returns KML representing the set geographical objects. |
||
| 15 | */ |
||
| 16 | public function formatLocationsAsKml( Location ...$locations ): string { |
||
| 29 | |||
| 30 | private function getKmlForLocations( array $locations ): string { |
||
| 41 | |||
| 42 | |||
| 43 | private function locationToKmlPlacemark( Location $location ): string { |
||
| 63 | |||
| 64 | private function getCoordinateString( Location $location ): string { |
||
| 70 | |||
| 71 | } |
||
| 72 |