Méthode | Description | |
---|---|---|
__construct ( string $direction = null ) | Initialise parser. Pass in either Treffynnon\Navigator::Long or Treffynnon\Navigator::Lat | |
get ( $coord ) | ||
getDirection ( ) : string | Get the direction string | |
parse ( $coord ) | ||
set ( float | string $coord ) : float | Wrapper function around the parse method to allow for coordinate validation | |
setDirection ( string $direction ) | Set the direction using Treffynnon\Navigator::Long or Treffynnon\Navigator::Lat |
public __construct ( string $direction = null ) | ||
$direction | string |
public getDirection ( ) : string | ||
Résultat | string |
public setDirection ( string $direction ) | ||
$direction | string |