Lines Matching refs:reason
10 private $reason;
12 public function __construct($reason = null)
14 if ($reason instanceof PromiseInterface) {
18 $this->reason = $reason;
28 return resolve($onRejected($this->reason));
39 throw UnhandledRejectionException::resolve($this->reason);
42 $result = $onRejected($this->reason);
45 throw UnhandledRejectionException::resolve($result->reason);
55 if (!_checkTypehint($onRejected, $this->reason)) {
64 return $this->then(null, function ($reason) use ($onFulfilledOrRejected) {
65 return resolve($onFulfilledOrRejected())->then(function () use ($reason) {
66 return new RejectedPromise($reason);