ClassConstantStorage
in package
uses
CustomMetadataTrait, ImmutableNonCloneableTrait, UnserializeMemoryUsageSuppressionTrait
FinalYes
Tags
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
$attributes read-only
public
array<string|int, mixed>
$attributes
= []
$custom_metadata
public
array<string, _MetadataEntry>
$custom_metadata
= []
$deprecated read-only
public
bool
$deprecated
= false
$description read-only
public
string|null
$description
= null
$final read-only
public
bool
$final
= false
$inferred_type
The type inferred from the value.
public
Union|null
$inferred_type
$location read-only
public
CodeLocation|null
$location
$stmt_location read-only
public
CodeLocation|null
$stmt_location
= null
$suppressed_issues read-only
public
array<string|int, mixed>
$suppressed_issues
= []
$type
The type from an annotation, or the inferred type if no annotation exists.
public
Union|null
$type
$type_location read-only
public
CodeLocation|null
$type_location
= null
$unresolved_node read-only
public
UnresolvedConstantComponent|null
$unresolved_node
= null
$visibility read-only
public
int
$visibility
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
__unserialize()
public
__unserialize(array<string|int, mixed> $properties) : void
Parameters
- $properties : array<string|int, mixed>
getHoverMarkdown()
Used in the Language Server
public
getHoverMarkdown(string $const) : string
Parameters
- $const : string
Return values
string__clone()
private
__clone() : mixed