| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PromiseResponse extends Response implements PromiseInterface |
||
| 11 | { |
||
| 12 | private PromiseInterface $promise; |
||
| 13 | |||
| 14 | public function __construct( |
||
| 22 | } |
||
| 23 | |||
| 24 | public function then( |
||
| 25 | callable $onFulfilled = null, |
||
| 26 | callable $onRejected = null, |
||
| 27 | callable $onProgress = null |
||
| 28 | ): PromiseInterface { |
||
| 29 | return $this->promise->then($onFulfilled, $onRejected, $onProgress); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function promise(): PromiseInterface |
||
| 35 | } |
||
| 36 | } |
||
| 37 |