PortMatcher
in package
implements
RequestMatcherInterface
Matches the explicit or scheme-default request port.
Tags
Table of Contents
Interfaces
- RequestMatcherInterface
- Contract for reusable request matching rules registered through PockBuilder::addMatcher().
Methods
- __construct() : mixed
- PortMatcher constructor.
- matches() : bool
- Return true when the request satisfies this rule.
Methods
__construct()
PortMatcher constructor.
public
__construct(int $port) : mixed
Parameters
- $port : int
matches()
Return true when the request satisfies this rule.
public
matches(RequestInterface $request) : bool
Parameters
- $request : RequestInterface