You are here

public function RejectedPromise::__construct in Auth0 Single Sign On 8.2

File

vendor/guzzlehttp/promises/src/RejectedPromise.php, line 14

Class

RejectedPromise
A promise that has been rejected.

Namespace

GuzzleHttp\Promise

Code

public function __construct($reason) {
  if (method_exists($reason, 'then')) {
    throw new \InvalidArgumentException('You cannot create a RejectedPromise with a promise.');
  }
  $this->reason = $reason;
}