WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcastore/public_html/wp-content/plugins/woocommerce/src/Api/Attributes/ArrayOf.php
<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Attributes;

use Attribute;

/**
 * Declares the element type for an array-typed property or return value.
 *
 * PHP arrays are untyped, so the builder cannot infer the element type via
 * reflection. Apply this attribute to tell the builder what GraphQL list type
 * to generate (e.g. `[Int!]`, `[String!]`).
 *
 * Example: `#[ArrayOf('int')]` on a `array $product_ids` property produces
 * the GraphQL type `[Int!]!`.
 */
#[Attribute]
final class ArrayOf {
	/**
	 * Constructor.
	 *
	 * @param string $type A scalar name ('int', 'string', 'float', 'bool') or
	 *                     a fully-qualified class name for output/enum types.
	 */
	public function __construct(
		public readonly string $type,
	) {
	}
}