Final Class Yiisoft\Proxy\Config\ParameterConfig
| Inheritance | Yiisoft\Proxy\Config\ParameterConfig |
|---|
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $defaultValue | mixed | The actual value specified as default with corresponding type. | Yiisoft\Proxy\Config\ParameterConfig |
| $defaultValueConstantName | string|null | A constant name for default value (when it's specified, {@see $isDefaultValueAvailable} and {@see $isDefaultValueConstant} must be true at the same time). |
Yiisoft\Proxy\Config\ParameterConfig |
| $isDefaultValueAvailable | boolean | Whether the default value available. | Yiisoft\Proxy\Config\ParameterConfig |
| $isDefaultValueConstant | boolean|null | Whether the default value refers to a constant (when {@see $isDefaultValueAvailable} is true}). |
Yiisoft\Proxy\Config\ParameterConfig |
| $name | string | A name without dollar sign ($). |
Yiisoft\Proxy\Config\ParameterConfig |
| $type | Yiisoft\Proxy\Config\TypeConfig|null | Type config. | Yiisoft\Proxy\Config\ParameterConfig |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Proxy\Config\ParameterConfig | |
| hasType() | Whether a parameter has type. | Yiisoft\Proxy\Config\ParameterConfig |
Property Details
The actual value specified as default with corresponding type. null means no default value (only
when {@see $isDefaultValueAvailable} is false).
A constant name for default value (when it's specified, {@see $isDefaultValueAvailable} and
{@see $isDefaultValueConstant} must be true at the same time). null means no default value specified or
it's not a constant (either {@see $isDefaultValueAvailable} or {@see $isDefaultValueConstant} is false).
Whether the default value available.
Whether the default value refers to a constant (when {@see $isDefaultValueAvailable} is
true}). null means no default value specified ({@see $isDefaultValueAvailable} is false).
A name without dollar sign ($). For example: previousNodesCount.
Type config. null means no type specified.
Method Details
| public mixed __construct ( Yiisoft\Proxy\Config\TypeConfig|null $type, string $name, boolean $isDefaultValueAvailable, boolean|null $isDefaultValueConstant, string|null $defaultValueConstantName, mixed $defaultValue ) | ||
| $type | Yiisoft\Proxy\Config\TypeConfig|null | |
| $name | string | |
| $isDefaultValueAvailable | boolean | |
| $isDefaultValueConstant | boolean|null | |
| $defaultValueConstantName | string|null | |
| $defaultValue | mixed | |
public function __construct(
/**
* @var TypeConfig|null Type config. `null` means no type specified.
*/
public ?TypeConfig $type,
/**
* @var string A name without dollar sign (`$`). For example: `previousNodesCount`.
*/
public string $name,
/**
* @var bool Whether the default value available.
*
* @link https://www.php.net/manual/en/functions.arguments.php#functions.arguments.default
*/
public bool $isDefaultValueAvailable,
/**
* @var bool|null Whether the default value refers to a constant (when {@see $isDefaultValueAvailable} is
* `true`}). `null` means no default value specified ({@see $isDefaultValueAvailable} is `false`).
*
* @link https://www.php.net/manual/en/language.constants.syntax.php
*/
public ?bool $isDefaultValueConstant,
/**
* @var string|null A constant name for default value (when it's specified, {@see $isDefaultValueAvailable} and
* {@see $isDefaultValueConstant} must be `true` at the same time). `null` means no default value specified or
* it's not a constant (either {@see $isDefaultValueAvailable} or {@see $isDefaultValueConstant} is `false`).
*
* @link https://www.php.net/manual/en/language.constants.syntax.php
*/
public ?string $defaultValueConstantName,
/**
* @var mixed The actual value specified as default with corresponding type. `null` means no default value (only
* when {@see $isDefaultValueAvailable} is `false`).
*/
public mixed $defaultValue,
) {
}
Signup or Login in order to comment.