PHPRouter\Route::getMethods PHP Method

getMethods() public method

public getMethods ( )
    public function getMethods()
    {
        return $this->methods;
    }

Usage Example

Example #1
0
 /**
  * @test
  */
 public function shouldCreateCorrectRouteObject()
 {
     $route = new Route('GET /test/page.html', 'A->index');
     $this->assertEquals('|^/test/page.html$|', $route->getPattern());
     $this->assertEquals(['GET'], $route->getMethods());
     $this->assertEquals('sync', $route->getType());
     $this->assertEquals('/test/page.html', $route->getUrl());
 }
All Usage Examples Of PHPRouter\Route::getMethods