simPod /
graphql-php
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace GraphQL; |
||
| 6 | |||
| 7 | use GraphQL\Executor\Promise\Adapter\SyncPromise; |
||
| 8 | |||
| 9 | class Deferred extends SyncPromise |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param callable() : mixed $executor |
||
|
0 ignored issues
–
show
Documentation
Bug
introduced
by
Loading history...
|
|||
| 13 | */ |
||
| 14 | public static function create(callable $executor) : self |
||
| 15 | { |
||
| 16 | return new self($executor); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param callable() : mixed $executor |
||
|
0 ignored issues
–
show
|
|||
| 21 | */ |
||
| 22 | 44 | public function __construct(callable $executor) |
|
| 23 | { |
||
| 24 | 44 | parent::__construct($executor); |
|
| 25 | 44 | } |
|
| 26 | } |
||
| 27 |