You are here

public function ReturnPromise::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php \Prophecy\Promise\ReturnPromise::__construct()

Initializes promise.

Parameters

array $returnValues Array of values:

File

vendor/phpspec/prophecy/src/Prophecy/Promise/ReturnPromise.php, line 31

Class

ReturnPromise
Return promise.

Namespace

Prophecy\Promise

Code

public function __construct(array $returnValues) {
  $this->returnValues = $returnValues;
}