src/Matchers/DefaultMatchers.php
public function matchMethod(RequestInterface $request, array $maps)
    {
        $matched = [];

        $method = $request->getMethod();

        /** @var RequestMap $map */
        foreach ($maps as $map) {
            if ($map->getRequest()->getMethod() === $method) {
                $matched[] = $map;
            }
        }

        return $matched;
    }
public function matchMethod(RequestInterface $request, array $maps)
    {
        $matched = [];

        $method = $request->getMethod();

        /** @var RequestMap $map */
        foreach ($maps as $map) {
            if ($map->getRequest()->getMethod() === $method) {
                $matched[] = $map;
            }
        }

        return $matched;
    }
public function matchMethod ( RequestInterface $ request , array $ maps ) { $ matched = [ ] ; $ method = $ request -> getMethod ( ) ; /** @var RequestMap $map */ foreach ( $ maps as $ map ) { if ( $ map -> getRequest ( ) -> getMethod ( ) === $ method ) { $ matched [ ] = $ map ; } } return $ matched ; }
Match method.

@param RequestInterface $request
@param array            $maps

@return RequestMap[]
Match method .