✏️ 编辑:Unroll.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/woocommerce/src/Api/Attributes/Unroll.php
大小:819 B · 修改:2026-07-15 13:50:33 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php declare(strict_types=1); namespace Automattic\WooCommerce\Api\Attributes; use Attribute; /** * Expands a class's properties into individual flat GraphQL arguments. * * When applied to a class, any `execute()` parameter of that type is * automatically unrolled. When applied to a specific `execute()` parameter, * only that usage is unrolled. * * Each public property of the target class becomes a separate GraphQL argument. * Properties marked with #[Ignore] are skipped, and #[Description] on * properties is forwarded to the generated argument descriptions. * * The generated resolver constructs the original class via its constructor, * passing the individual argument values as named parameters. */ #[Attribute( Attribute::TARGET_CLASS | Attribute::TARGET_PARAMETER )] final class Unroll { }
💾 保存
取消
保存为 UTF-8,换行统一为 LF