Treffynnon\Navigator\Coordinate::getParser PHP Method

getParser() public method

Get the parser that is currently in use for this coordinate
public getParser ( ) : ParserInterface
return ParserInterface
    public function &getParser()
    {
        return $this->parser;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @dataProvider coordValidProvider
  */
 public function testConstructorSetParser($coord)
 {
     $parser = new C\DecimalParser();
     $Coordinate = new N\Coordinate($coord, $parser);
     $this->assertInstanceOf('Treffynnon\\Navigator\\Coordinate\\DecimalParser', $Coordinate->getParser());
 }
All Usage Examples Of Treffynnon\Navigator\Coordinate::getParser