pock

UriMatcher
in package
implements RequestMatcherInterface

Class UriMatcher

Tags
category

UriMatcher

Interfaces, Classes, Traits and Enums

RequestMatcherInterface
Interface RequestMatcherInterface

Table of Contents

__construct()  : mixed
UriMatcher constructor.
matches()  : bool
Returns true if request is matched by this matcher.

Methods

__construct()

UriMatcher constructor.

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

matches()

Returns true if request is matched by this matcher.

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

Search results