MethodMatcher
in package
implements
RequestMatcherInterface
Class MethodMatcher
Tags
Interfaces, Classes, Traits and Enums
- RequestMatcherInterface
- Interface RequestMatcherInterface
Table of Contents
- __construct() : mixed
- MethodMatcher constructor.
- matches() : bool
- Returns true if request is matched by this matcher.
Methods
__construct()
MethodMatcher constructor.
public
__construct([string $method = RequestMethod::GET ]) : mixed
Parameters
- $method : string = RequestMethod::GET
Return values
mixed —matches()
Returns true if request is matched by this matcher.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface