pock

UriMatcher
in package
implements RequestMatcherInterface

Compares the complete request URI with a string or PSR-7 URI.

Tags
category

UriMatcher

Table of Contents

Interfaces

RequestMatcherInterface
Contract for reusable request matching rules registered through PockBuilder::addMatcher().

Methods

__construct()  : mixed
UriMatcher constructor.
matches()  : bool
Return true when the request satisfies this rule.

Methods

__construct()

UriMatcher constructor.

public __construct(UriInterface|string $uri) : mixed
Parameters
$uri : UriInterface|string

matches()

Return true when the request satisfies this rule.

public matches(RequestInterface $request) : bool
Parameters
$request : RequestInterface
Tags
inheritDoc
Return values
bool
On this page

Search results