getParser() публичный Метод

Get the parser that is currently in use for this coordinate
public getParser ( ) : ParserInterface
Результат ParserInterface
Пример #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());
 }
Пример #2
0
 /**
  * Prime the coordinate parser with any additional information
  * necessary 
  */
 protected function primeCoordinateParsers()
 {
     $this->latitude->getParser()->setDirection(N::Lat);
     $this->longitude->getParser()->setDirection(N::Long);
 }