pock

PathMatcher
in package
implements RequestMatcherInterface

Class PathMatcher

Tags
category

PathMatcher

Interfaces, Classes, Traits and Enums

RequestMatcherInterface
Interface RequestMatcherInterface

Table of Contents

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

Methods

__construct()

PathMatcher constructor.

public __construct(string $path) : mixed
Parameters
$path : 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