Automattic\WooCommerce\Vendor\GraphQL\Utils
SchemaPrinter::printImplementedInterfaces
Method of the class: SchemaPrinter{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = SchemaPrinter::printImplementedInterfaces( $type ): string;
- $type(ImplementingType) (required)
- .
SchemaPrinter::printImplementedInterfaces() SchemaPrinter::printImplementedInterfaces code WC 10.9.1
protected static function printImplementedInterfaces(ImplementingType $type): string
{
$interfaces = $type->getInterfaces();
return $interfaces === []
? ''
: ' implements ' . implode(
' & ',
array_map(
static fn (InterfaceType $interface): string => $interface->name,
$interfaces
)
);
}