public function RejectedPromise::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/RejectedPromise.php \GuzzleHttp\Promise\RejectedPromise::__construct()
File
- vendor/
guzzlehttp/ promises/ src/ RejectedPromise.php, line 14
Class
- RejectedPromise
- A promise that has been rejected.
Namespace
GuzzleHttp\PromiseCode
public function __construct($reason) {
if (method_exists($reason, 'then')) {
throw new \InvalidArgumentException('You cannot create a RejectedPromise with a promise.');
}
$this->reason = $reason;
}