MethodParameter
in package
FinalYes
Table of Contents
Constants
- NO_DEFAULT_VALUE = '__NO_VALUE__'
Properties
- $defaultValue : mixed
- $isReference : bool
- $isVariadic : bool
- $name : string
- $type : Type
Methods
- __construct() : mixed
- __toString() : string
- getDefaultValue() : string|null
- getName() : string
- getType() : Type
- isReference() : bool
- isVariadic() : bool
Constants
NO_DEFAULT_VALUE
public
mixed
NO_DEFAULT_VALUE
= '__NO_VALUE__'
Properties
$defaultValue
private
mixed
$defaultValue
$isReference
private
bool
$isReference
$isVariadic
private
bool
$isVariadic
$name
private
string
$name
$type
private
Type
$type
Methods
__construct()
public
__construct(string $name, Type $type[, bool $isReference = false ][, bool $isVariadic = false ][, mixed $defaultValue = self::NO_DEFAULT_VALUE ]) : mixed
Parameters
- $name : string
- $type : Type
- $isReference : bool = false
- $isVariadic : bool = false
- $defaultValue : mixed = self::NO_DEFAULT_VALUE
__toString()
public
__toString() : string
Return values
stringgetDefaultValue()
public
getDefaultValue() : string|null
Return values
string|nullgetName()
public
getName() : string
Return values
stringgetType()
public
getType() : Type
Return values
TypeisReference()
public
isReference() : bool
Return values
boolisVariadic()
public
isVariadic() : bool