Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

PhpEnumType::parseValuepublicWC 1.0

Method of the class: PhpEnumType{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PhpEnumType = new PhpEnumType();
$PhpEnumType->parseValue( $value );
$value(required)
.

PhpEnumType::parseValue() code WC 10.9.1

public function parseValue($value)
{
    // Can happen when variable values undergo a serialization cycle before execution
    if ($value instanceof $this->enumClass) {
        return $value;
    }

    return parent::parseValue($value);
}