QueryMatcher
in package
implements
RequestMatcherInterface
Partially matches decoded query parameters while allowing additional parameters.
Tags
Table of Contents
Interfaces
- RequestMatcherInterface
- Contract for reusable request matching rules registered through PockBuilder::addMatcher().
Methods
- __construct() : mixed
- QueryMatcher constructor.
- matches() : bool
- Return true when the request satisfies this rule.
Methods
__construct()
QueryMatcher constructor.
public
__construct(array<string, mixed> $query) : mixed
Parameters
- $query : array<string, mixed>
matches()
Return true when the request satisfies this rule.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface