Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
PhpEnumType::parseValue
Method of the class: PhpEnumType{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PhpEnumType = new PhpEnumType(); $PhpEnumType->parseValue( $value );
- $value(required)
- .
PhpEnumType::parseValue() 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);
}