flight\net\Route::matchMethod PHP Method

matchMethod() public method

Checks if an HTTP method matches the route methods.
public matchMethod ( string $method ) : boolean
$method string HTTP method
return boolean Match status
    public function matchMethod($method)
    {
        return count(array_intersect(array($method, '*'), $this->methods)) > 0;
    }