REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.13 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/woocommerce/src/Api/Attributes/Parameter.php
Text
Base64
<?php declare(strict_types=1); namespace Automattic\WooCommerce\Api\Attributes; use Attribute; /** * Declares an explicit GraphQL argument for a query or mutation. * * Use this when the argument cannot be inferred from the `execute()` method * signature — for example, when a parameter needs a specific GraphQL type, * nullability, or default that differs from what reflection would produce. * This attribute is repeatable: apply it once per argument. */ #[Attribute( Attribute::TARGET_ALL | Attribute::IS_REPEATABLE )] final class Parameter { /** * Whether a default value was provided. * * @var bool */ public readonly bool $has_default; /** * Constructor. * * @param string $name The GraphQL argument name (not needed when unrolling). * @param string $type The PHP type name ('int', 'string', 'float', 'bool') * or a fully-qualified class name for complex types. * @param bool $nullable Whether the argument accepts null. * @param bool $array Whether the argument is a list (e.g. `[Int!]`). * @param mixed $default The default value if the argument is omitted. * @param string $description Human-readable description for the schema. * @param bool $has_default Set to true to explicitly indicate a default is * provided (needed when the default value is null). * @param bool $unroll When true, the class given in $type is expanded into * individual GraphQL arguments (one per public property). */ public function __construct( public readonly string $name = '', public readonly string $type = '', public readonly bool $nullable = false, public readonly bool $array = false, public readonly mixed $default = null, public readonly string $description = '', bool $has_default = false, public readonly bool $unroll = false, ) { // We need a separate flag because null could be a valid default value. // Callers pass has_default: true when they supply a default, or we infer // it from the default value being non-null. $this->has_default = $has_default || null !== $default; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ArrayOf.php
784 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ConnectionOf.php
725 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Deprecated.php
638 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Description.php
621 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Ignore.php
411 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Name.php
626 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Parameter.php
2.13 KB
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ParameterDescription.php
1.01 KB
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PublicAccess.php
479 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RequiredCapability.php
841 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ReturnType.php
780 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScalarType.php
793 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Unroll.php
819 B
lrw-r--r--
2026-05-05 14:26:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).