Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null) |
||
38 | { |
||
39 | if ($onFulfilled === null) { |
||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | try { |
||
44 | return new self($this->resolveActual($onFulfilled)); |
||
45 | } catch (\Exception $e) { |
||
46 | return new RejectedPromise($e); |
||
47 | } |
||
48 | } |
||
49 | |||
70 |