Lggr
Public Member Functions | List of all members
Prophecy\Promise\ReturnPromise Class Reference
Inheritance diagram for Prophecy\Promise\ReturnPromise:
Inheritance graph
[legend]
Collaboration diagram for Prophecy\Promise\ReturnPromise:
Collaboration graph
[legend]

Public Member Functions

 __construct (array $returnValues)
 
 execute (array $args, ObjectProphecy $object, MethodProphecy $method)
 

Detailed Description

Return promise.

Author
Konstantin Kudryashov ever..nosp@m.zet@.nosp@m.gmail.nosp@m..com

Constructor & Destructor Documentation

◆ __construct()

Prophecy\Promise\ReturnPromise::__construct ( array  $returnValues)

Initializes promise.

Parameters
array$returnValuesArray of values

Member Function Documentation

◆ execute()

Prophecy\Promise\ReturnPromise::execute ( array  $args,
ObjectProphecy  $object,
MethodProphecy  $method 
)

Returns saved values one by one until last one, then continuously returns last value.

Parameters
array$args
ObjectProphecy$object
MethodProphecy$method
Returns
mixed

Implements Prophecy\Promise\PromiseInterface.


The documentation for this class was generated from the following file: