HEX
Server: Apache
System: Linux web5.visualcom.es 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ensaco.es (10019)
PHP: 8.3.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/ensaco.es/httpdocs/wp-content/plugins/woocommerce/src/Api/Attributes/Deprecated.php
<?php

declare(strict_types=1);

namespace Automattic\WooCommerce\Api\Attributes;

use Attribute;

/**
 * Marks a field or enum value as deprecated in the GraphQL schema.
 *
 * Deprecated elements remain functional but are flagged with a deprecation
 * reason in introspection, signaling to API consumers that they should
 * migrate to an alternative.
 */
#[Attribute]
final class Deprecated {
	/**
	 * Constructor.
	 *
	 * @param string $reason A human-readable explanation of why the element is
	 *                       deprecated and what to use instead.
	 */
	public function __construct(
		public readonly string $reason,
	) {
	}
}