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

get the first parameter
С версии: 2.4.0
public getFirst ( ) : string
Результат string
Пример #1
0
 /**
  * testGetFirst
  *
  * @since 2.4.0
  *
  * @param string $route
  * @param array $expectArray
  *
  * @dataProvider providerParameter
  */
 public function testGetFirst($route = null, $expectArray = [])
 {
     /* setup */
     $this->_request->setQuery('p', $route);
     $parameter = new Router\Parameter($this->_request);
     $parameter->init();
     /* actual */
     $actual = $parameter->getFirst();
     /* compare */
     $this->assertEquals($expectArray['first'], $actual);
 }