WooCommerce Code Reference

Argument
in package

Tags
phpstan-type

ArgumentType (Type&InputType)|callable(): (Type&InputType)

phpstan-type

UnnamedArgumentConfig array{ name?: string, type: ArgumentType, defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: InputValueDefinitionNode|null }

phpstan-type

ArgumentConfig array{ name: string, type: ArgumentType, defaultValue?: mixed, description?: string|null, deprecationReason?: string|null, astNode?: InputValueDefinitionNode|null }

phpstan-type

ArgumentListConfig iterable<ArgumentConfig|ArgumentType>|iterable

Table of Contents

$astNode  : InputValueDefinitionNode|null
$config  : array<string|int, mixed>
$defaultValue  : mixed
$deprecationReason  : string|null
$description  : string|null
$name  : string
$type  : Type
__construct()  : mixed
assertValid()  : void
defaultValueExists()  : bool
getType()  : Type|InputType
isDeprecated()  : bool
isRequired()  : bool
listFromConfig()  : array<int, self>

Properties

Methods

listFromConfig()

public static listFromConfig(iteratable<string|int, mixed> $config) : array<int, self>
Parameters
$config : iteratable<string|int, mixed>
Tags
phpstan-param

ArgumentListConfig $config

Return values
array<int, self>