WooCommerce Code Reference

Directive
in package

Tags
phpstan-import-type

ArgumentListConfig from Argument

phpstan-type

DirectiveConfig array{ name: string, description?: string|null, args?: ArgumentListConfig|null, locations: array, isRepeatable?: bool|null, astNode?: DirectiveDefinitionNode|null }

Table of Contents

DEFAULT_DEPRECATION_REASON  = 'No longer supported'
DEPRECATED_NAME  = 'deprecated'
IF_ARGUMENT_NAME  = 'if'
INCLUDE_NAME  = 'include'
ONE_OF_NAME  = 'oneOf'
REASON_ARGUMENT_NAME  = 'reason'
SKIP_NAME  = 'skip'
$args  : array<string|int, mixed>
$astNode  : DirectiveDefinitionNode|null
$config  : array<string|int, mixed>
$description  : string|null
$isRepeatable  : bool
$locations  : array<string|int, mixed>
$name  : string
$internalDirectives  : array<string|int, mixed>|null
Lazily initialized.
__construct()  : mixed
builtInDirectives()  : array<string, Directive>
deprecatedDirective()  : Directive
getInternalDirectives()  : array<string, Directive>
includeDirective()  : Directive
isBuiltInDirective()  : bool
isSpecifiedDirective()  : bool
oneOfDirective()  : Directive
resetCachedInstances()  : void
skipDirective()  : Directive

Constants

Properties

Methods