SchemeMatcher
in package
implements
RequestMatcherInterface
Matches the scheme component of a request URI.
Tags
Table of Contents
Interfaces
- RequestMatcherInterface
- Contract for reusable request matching rules registered through PockBuilder::addMatcher().
Methods
- __construct() : mixed
- SchemeMatcher constructor.
- matches() : bool
- Return true when the request satisfies this rule.
Methods
__construct()
SchemeMatcher constructor.
public
__construct([string $scheme = RequestScheme::HTTP ]) : mixed
Parameters
- $scheme : string = RequestScheme::HTTP
matches()
Return true when the request satisfies this rule.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface