guessParser() public method

Guess the correct parser for a given coordinate
public guessParser ( float | string $coord ) : Treffynnon\Navigator\Coordinate\DecimalParser | DmsParser
$coord float | string
return Treffynnon\Navigator\Coordinate\DecimalParser | Treffynnon\Navigator\Coordinate\DmsParser
示例#1
0
 public function testGuessParserWithDMS()
 {
     $Coordinate = new N\Coordinate();
     $return = $Coordinate->guessParser('10 10 10N');
     $this->assertInstanceOf('Treffynnon\\Navigator\\Coordinate\\DmsParser', $return);
 }