1 | <?php |
||
19 | class RejectedPromise extends AbstractPromise |
||
20 | { |
||
21 | /** |
||
22 | * @var mixed |
||
23 | */ |
||
24 | protected $reason; |
||
25 | |||
26 | /** |
||
27 | * @param mixed $reason |
||
28 | */ |
||
29 | public function __construct($reason = null) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function state() |
||
63 | |||
64 | /** |
||
65 | * @param callable $onRejected |
||
66 | * |
||
67 | * @return mixed |
||
68 | */ |
||
69 | private function rejectActual(callable $onRejected) |
||
79 | } |
||
80 |