Final Class Yiisoft\Proxy\Config\TypeConfig
| Inheritance | Yiisoft\ |
|---|
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $allowsNull | boolean | Whether the null values are allowed. | Yiisoft\ |
| $name | string | The string representation of a type, for example: int, bool, etc. |
Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
Property Details
Method Details
| public mixed __construct ( string $name, boolean $allowsNull ) | ||
| $name | string | |
| $allowsNull | boolean | |
public function __construct(
/**
* @var string The string representation of a type, for example: `int`, `bool`, etc. In case of a class it's a
* full path including namespace, for example `Yiisoft\Proxy\Tests\Stub\Node`. For built-in classes like
* `ArrayIterator` the leading slash is not included.
*
* @link https://www.php.net/manual/en/language.types.declarations.php
*/
public string $name,
/**
* @var bool Whether the null values are allowed.
*
* @link https://www.php.net/manual/en/migration71.new-features.php#migration71.new-features.nullable-types
*/
public bool $allowsNull,
) {}
User Contributed Notes
Leave a comment
Join the conversation to share a note.