pock

CallbackReplyFactory
in package
implements ReplyFactoryInterface

Class CallbackReplyFactory

Tags
category

CallbackReplyFactory

Interfaces, Classes, Traits and Enums

ReplyFactoryInterface
Interface ReplyFactoryInterface

Table of Contents

__construct()  : mixed
CallbackReplyFactory constructor.
createReply()  : ResponseInterface
Reply to the specified request.

Methods

__construct()

CallbackReplyFactory constructor.

public __construct(callable $callback) : mixed
Parameters
$callback : callable
Return values
mixed

createReply()

Reply to the specified request.

public createReply(RequestInterface $request, PockResponseBuilder $responseBuilder) : ResponseInterface
Parameters
$request : RequestInterface
$responseBuilder : PockResponseBuilder
Tags
inheritDoc
Return values
ResponseInterface

Search results