[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/ControllerMetadata/ -> ArgumentMetadata.php (summary)

(no description)

File Size: 115 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ArgumentMetadata:: (7 methods):
  __construct()
  getName()
  getType()
  isVariadic()
  hasDefaultValue()
  isNullable()
  getDefaultValue()


Class: ArgumentMetadata  - X-Ref

Responsible for storing metadata of an argument.

__construct($name, $type, $isVariadic, $hasDefaultValue, $defaultValue, $isNullable = false)   X-Ref

param: string $name
param: string $type
param: bool   $isVariadic
param: bool   $hasDefaultValue
param: mixed  $defaultValue
param: bool   $isNullable

getName()   X-Ref
Returns the name as given in PHP, $foo would yield "foo".

return: string

getType()   X-Ref
Returns the type of the argument.

The type is the PHP class in 5.5+ and additionally the basic type in PHP 7.0+.

return: string|null

isVariadic()   X-Ref
Returns whether the argument is defined as "...$variadic".

return: bool

hasDefaultValue()   X-Ref
Returns whether the argument has a default value.

Implies whether an argument is optional.

return: bool

isNullable()   X-Ref
Returns whether the argument accepts null values.

return: bool

getDefaultValue()   X-Ref
Returns the default value of the argument.

return: mixed



Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1