0 follower

Final Class Yiisoft\Proxy\Config\TypeConfig

InheritanceYiisoft\Proxy\Config\TypeConfig

Public Properties

Hide inherited properties

Property Type Description Defined By
$allowsNull boolean Whether the null values are allowed. Yiisoft\Proxy\Config\TypeConfig
$name string The string representation of a type, for example: int, bool, etc. Yiisoft\Proxy\Config\TypeConfig

Public Methods

Hide inherited methods

Method Description Defined By
__construct() Yiisoft\Proxy\Config\TypeConfig

Property Details

Hide inherited properties

$allowsNull public property

Whether the null values are allowed.

public boolean $allowsNull null
$name public property

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.

public string $name null

Method Details

Hide inherited methods

__construct() public method

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,
) {
}