HEX
Server: LiteSpeed
System: Linux s383.bitcommand.com 5.14.0-687.24.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 9 18:14:06 EDT 2026 x86_64
User: pclast (1605)
PHP: 8.1.34
Disabled: exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pclast/www/wp-content/plugins/woocommerce/src/Internal/Api/Schema/Type.php
<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Internal\Api\Schema;

use Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\Type as WebonyxType;

/**
 * Static facade for GraphQL scalar types and type modifiers referenced by
 * autogenerated resolvers.
 *
 * Autogenerated code emitted by ApiBuilder only touches webonyx through
 * this (and the other classes in the Internal\Api\Schema namespace), so
 * the underlying GraphQL engine can be swapped without invalidating
 * already-committed generated code. Return types are intentionally
 * omitted so a future migration can change the concrete return type
 * without breaking callers.
 *
 * @internal Reserved for autogenerated resolver code.
 */
final class Type {
	/**
	 * The built-in GraphQL Int scalar.
	 */
	public static function int() {
		return WebonyxType::int();
	}

	/**
	 * The built-in GraphQL String scalar.
	 */
	public static function string() {
		return WebonyxType::string();
	}

	/**
	 * The built-in GraphQL Boolean scalar.
	 */
	public static function boolean() {
		return WebonyxType::boolean();
	}

	/**
	 * The built-in GraphQL Float scalar.
	 */
	public static function float() {
		return WebonyxType::float();
	}

	/**
	 * The built-in GraphQL ID scalar.
	 */
	public static function id() {
		return WebonyxType::id();
	}

	// phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid -- Method names mirror the webonyx Type factories so autogenerated imports of this facade and its webonyx counterpart are interchangeable.

	/**
	 * Wrap a nullable schema type as non-null (`T!`).
	 *
	 * @param mixed $inner A nullable schema type.
	 */
	public static function nonNull( $inner ) {
		return WebonyxType::nonNull( $inner );
	}

	/**
	 * Wrap a schema type as a list (`[T]`).
	 *
	 * @param mixed $inner A schema type.
	 */
	public static function listOf( $inner ) {
		return WebonyxType::listOf( $inner );
	}

	// phpcs:enable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
}