| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Deferred extends SyncPromise |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param callable() : mixed $executor |
||
|
|
|||
| 13 | */ |
||
| 14 | public static function create(callable $executor) : self |
||
| 15 | { |
||
| 16 | return new self($executor); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param callable() : mixed $executor |
||
| 21 | */ |
||
| 22 | 44 | public function __construct(callable $executor) |
|
| 25 | 44 | } |
|
| 26 | } |
||
| 27 |