Automattic\WooCommerce\Vendor\GraphQL\Executor\Promise

PromiseAdapter::createFulfilledpublicWC 1.0

Creates a fulfilled Promise for a value if the value is not a promise.

Method of the class: PromiseAdapter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PromiseAdapter = new PromiseAdapter();
$PromiseAdapter->createFulfilled( $value ): Promise;
$value(mixed)
.
Default: null

PromiseAdapter::createFulfilled() code WC 10.8.1

public function createFulfilled($value = null): Promise;