| 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 { |
||
| 65 | |||
| 66 | private function getCoordinateString( Location $location ): string { |
||
| 72 | |||
| 73 | private function escapeValue( string $value ): string { |
||
| 76 | |||
| 77 | } |
||
| 78 |