Kraken\Promise\PromiseFulfilled::__construct PHP Method

__construct() public method

public __construct ( mixed | null $value = null )
$value mixed | null
    public function __construct($value = null)
    {
        if ($value instanceof PromiseInterface) {
            throw new InvalidArgumentException('You cannot create PromiseFulfilled with a promise. Use Promise::doResolve($promiseOrValue) instead.');
        }
        $this->value = $value;
    }