✏️ 编辑:Deprecated.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/woocommerce/src/Api/Attributes/Deprecated.php
大小:638 B · 修改:2026-07-15 13:50:33 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?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, ) { } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF