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