Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

LeafType::serializepublicWC 1.0

Serializes an internal value to include in a response.

Should throw an exception on invalid values.

Method of the class: LeafType{}

No Hooks.

Returns

Mixed.

Usage

$LeafType = new LeafType();
$LeafType->serialize( $value );
$value(mixed) (required)
.

LeafType::serialize() code WC 10.9.1

public function serialize($value);