pock

HttpFulfilledPromise
in package
implements Promise

Fulfilled HTTP promise compatible with every supported HTTPlug version.

Tags
category

HttpFulfilledPromise

Table of Contents

Interfaces

Promise

Methods

__construct()  : mixed
getState()  : string
then()  : mixed
wait()  : mixed

Methods

__construct()

public __construct(ResponseInterface $response) : mixed
Parameters
$response : ResponseInterface

then()

public then([callable|null $onFulfilled = null ][, callable|null $onRejected = null ]) : mixed
Parameters
$onFulfilled : callable|null = null
$onRejected : callable|null = null
Tags
inheritDoc

wait()

public wait([mixed $unwrap = true ]) : mixed
Parameters
$unwrap : mixed = true
Tags
inheritDoc
SuppressWarnings

(PHPMD.BooleanArgumentFlag)

On this page

Search results