• File: PromiseExecutor.php
  • Full Path: /home/slvgwrnz/public_html/wp-admin/wp-includes/wp-content/plugins/woocommerce/lib/packages/GraphQL/Executor/PromiseExecutor.php
  • Date Modified: 09/22/2026 11:40 AM
  • File size: 428 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php declare(strict_types=1);

namespace Automattic\WooCommerce\Vendor\GraphQL\Executor;

use Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise\Promise;

class PromiseExecutor implements ExecutorImplementation
{
    private Promise $result;

    public function __construct(Promise $result)
    {
        $this->result = $result;
    }

    public function doExecute(): Promise
    {
        return $this->result;
    }
}