Promise
2 months ago
ExecutionContext.php
2 months ago
ExecutionResult.php
2 months ago
Executor.php
2 months ago
ExecutorImplementation.php
2 months ago
PromiseExecutor.php
2 months ago
ReferenceExecutor.php
2 months ago
ScopedContext.php
2 months ago
Values.php
2 months ago
PromiseExecutor.php
21 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Vendor\GraphQL\Executor; |
| 4 | |
| 5 | use Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise\Promise; |
| 6 | |
| 7 | class PromiseExecutor implements ExecutorImplementation |
| 8 | { |
| 9 | private Promise $result; |
| 10 | |
| 11 | public function __construct(Promise $result) |
| 12 | { |
| 13 | $this->result = $result; |
| 14 | } |
| 15 | |
| 16 | public function doExecute(): Promise |
| 17 | { |
| 18 | return $this->result; |
| 19 | } |
| 20 | } |
| 21 |