Documentation

ClassConstantStorage
in package
uses CustomMetadataTrait, ImmutableNonCloneableTrait, UnserializeMemoryUsageSuppressionTrait

FinalYes
Tags
psalm-suppress

PossiblyUnusedProperty

psalm-immutable

Table of Contents

Properties

$attributes  : array<string|int, mixed>
$custom_metadata  : array<string, _MetadataEntry>
$deprecated  : bool
$description  : string|null
$final  : bool
$inferred_type  : Union|null
The type inferred from the value.
$location  : CodeLocation|null
$stmt_location  : CodeLocation|null
$suppressed_issues  : array<string|int, mixed>
$type  : Union|null
The type from an annotation, or the inferred type if no annotation exists.
$type_location  : CodeLocation|null
$unresolved_node  : UnresolvedConstantComponent|null
$visibility  : int

Methods

__construct()  : mixed
__unserialize()  : void
getHoverMarkdown()  : string
Used in the Language Server
__clone()  : mixed

Properties

$unresolved_node read-only

public UnresolvedConstantComponent|null $unresolved_node = null

Methods

__construct()

public __construct(Union|null $type, Union|null $inferred_type, ClassLikeAnalyzer::VISIBILITY_* $visibility, CodeLocation|null $location[, CodeLocation|null $type_location = null ][, CodeLocation|null $stmt_location = null ][, bool $deprecated = false ][, bool $final = false ][, UnresolvedConstantComponent|null $unresolved_node = null ][, array<int, AttributeStorage$attributes = [] ][, array<int, string> $suppressed_issues = [] ][, string|null $description = null ]) : mixed
Parameters
$type : Union|null
$inferred_type : Union|null
$visibility : ClassLikeAnalyzer::VISIBILITY_*
$location : CodeLocation|null
$type_location : CodeLocation|null = null
$stmt_location : CodeLocation|null = null
$deprecated : bool = false
$final : bool = false
$unresolved_node : UnresolvedConstantComponent|null = null
$attributes : array<int, AttributeStorage> = []
$suppressed_issues : array<int, string> = []
$description : string|null = null

getHoverMarkdown()

Used in the Language Server

public getHoverMarkdown(string $const) : string
Parameters
$const : string
Return values
string

        
On this page

Search results