| 1 | <?php |
||
| 12 | final class WaypointType |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Opencaching waypoint. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | const OC = 'oc'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Geocaching waypoint. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | const GC = 'gc'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Guesses the waypoint type by given waypoint. |
||
| 30 | * |
||
| 31 | * @param string $waypoint |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | * |
||
| 35 | * @throws UnknownWaypointTypeException Thrown when the waypoint type could not be guessed |
||
| 36 | */ |
||
| 37 | public static function guess($waypoint) |
||
| 58 | } |
||
| 59 |