Automattic\WooCommerce\Vendor\GraphQL\Utils

SchemaPrinter::printImplementedInterfacesprotected staticWC 1.0

Method of the class: SchemaPrinter{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = SchemaPrinter::printImplementedInterfaces( $type ): string;
$type(ImplementingType) (required)
.

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
            )
        );
}