pock

CallbackRequestMatcher
in package
implements RequestMatcherInterface

Class CallbackRequestMatcher

Tags
category

CallbackRequestMatcher

Interfaces, Classes, Traits and Enums

RequestMatcherInterface
Interface RequestMatcherInterface

Table of Contents

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

Methods

__construct()

CallbackRequestMatcher constructor.

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