PHP 8.2.31
Preview: ConnectionOf.php Size: 725 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Api/Attributes/ConnectionOf.php

<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Attributes;

use Attribute;

/**
 * Marks a query's return type as a Relay-style connection of the given node type.
 *
 * Applied to the `execute()` method of a query class that returns a `Connection`.
 * The builder uses this to generate the corresponding connection and edge GraphQL
 * types (e.g. `CouponConnection`, `CouponEdge`) and to wire the correct return
 * type in the schema.
 */
#[Attribute]
final class ConnectionOf {
	/**
	 * Constructor.
	 *
	 * @param string $type The fully-qualified class name of the node type
	 *                     (e.g. `Coupon::class`).
	 */
	public function __construct(
		public readonly string $type,
	) {
	}
}

Directory Contents

Dirs: 0 × Files: 13

Name Size Perms Modified Actions
784 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
725 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
638 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
621 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
411 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
626 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
2.13 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
1.01 KB lrw-r--r-- 2026-05-05 14:26:50
Edit Download
479 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
841 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
780 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
793 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download
819 B lrw-r--r-- 2026-05-05 14:26:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).