for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Proxy\Config;
/**
* @internal
*
* A type metadata. {@see ClassConfigFactory} is used for creation. Can be used both for method parameters' types and
* return type.
* @link https://www.php.net/manual/en/language.types.declarations.php
*/
final class TypeConfig
{
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.
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,
) {
}