Final Class yii\apidoc\models\PseudoTypeDoc

Inheritanceyii\apidoc\models\PseudoTypeDoc » yii\base\BaseObject
Source Code https://github.com/yiisoft/yii2-apidoc/blob/master/models/PseudoTypeDoc.php

Represents API documentation information for a @phpstan-type and @psalm-type.

Public Methods

Hide inherited methods

Method Description Defined By
__construct() yii\apidoc\models\PseudoTypeDoc

Constants

Hide inherited constants

Constant Value Description Defined By
TYPES [ self::TYPE_PHPSTAN, self::TYPE_PSALM, ] yii\apidoc\models\PseudoTypeDoc
TYPE_PHPSTAN 'phpstan' yii\apidoc\models\PseudoTypeDoc
TYPE_PSALM 'psalm' yii\apidoc\models\PseudoTypeDoc

Property Details

Hide inherited properties

$name public property
public string $name null
$parent public property
$type public property
public string $type null
$value public property
public \phpDocumentor\Reflection\Type $value null

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( value-of $type, yii\apidoc\models\BaseDoc $parent, string $name, \phpDocumentor\Reflection\Type $value )
$type value-of
$parent yii\apidoc\models\BaseDoc
$name string
$value \phpDocumentor\Reflection\Type

                public function __construct(
    public string $type,
    public BaseDoc $parent,
    public string $name,
    public Type $value
) {
}