MultipleMatcher
in package
implements
RequestMatcherInterface, Countable
Class MultipleMatcher
Tags
Interfaces, Classes, Traits and Enums
- RequestMatcherInterface
- Interface RequestMatcherInterface
- Countable
Table of Contents
- $matchers : array<string|int, RequestMatcherInterface>
- __construct() : mixed
- MultipleMatcher constructor.
- addMatcher() : $this
- count() : int
- matches() : bool
- Returns true if request is matched by this matcher.
Properties
$matchers
public
array<string|int, RequestMatcherInterface>
$matchers
Methods
__construct()
MultipleMatcher constructor.
public
__construct([array<string|int, RequestMatcherInterface> $matchers = [] ]) : mixed
Parameters
- $matchers : array<string|int, RequestMatcherInterface> = []
Return values
mixed —addMatcher()
public
addMatcher(RequestMatcherInterface $matcher) : $this
Parameters
- $matcher : RequestMatcherInterface
Return values
$this —count()
public
count() : int
Return values
int —matches()
Returns true if request is matched by this matcher.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface