FluentPromise
class FluentPromise implements PromiseInterface (View source)
A decorated Promise which allows for chaining callbacks.
Traits
Methods
Forward a method call to the given object.
Forward a method call to the given object, returning $this if the forwarded call returned itself.
Throw a bad method call exception for the given method.
Create a new fluent promise instance.
No description
No description
No description
No description
No description
No description
No description
Get the underlying Guzzle promise.
Proxy requests to the underlying promise interface and update the local promise.
Details
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
protected mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
__construct(PromiseInterface $guzzlePromise)
Create a new fluent promise instance.
PromiseInterface
then(callable|null $onFulfilled = null, callable|null $onRejected = null)
No description
PromiseInterface
otherwise(callable $onRejected)
No description
void
resolve($value)
No description
void
reject($reason)
No description
void
cancel()
No description
wait(bool $unwrap = true)
No description
string
getState()
No description
PromiseInterface
getGuzzlePromise()
Get the underlying Guzzle promise.
mixed
__call(string $method, array $parameters)
Proxy requests to the underlying promise interface and update the local promise.