forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstantReflection.php
More file actions
40 lines (27 loc) · 936 Bytes
/
Copy pathConstantReflection.php
File metadata and controls
40 lines (27 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php declare(strict_types = 1);
namespace PHPStan\Reflection;
use PHPStan\TrinaryLogic;
use PHPStan\Type\Type;
/**
* Reflection for a constant (class constant or global constant).
*
* Provides the constant's name, resolved value type, deprecation status, and
* metadata. This is the base interface — ClassConstantReflection extends it
* with class-specific features (declaring class, value expression, native type).
*
* @api
* @api-do-not-implement
*/
interface ConstantReflection
{
public function getName(): string;
public function describe(): string;
public function isBuiltin(): TrinaryLogic;
public function getValueType(): Type;
public function isDeprecated(): TrinaryLogic;
public function getDeprecatedDescription(): ?string;
public function isInternal(): TrinaryLogic;
public function getFileName(): ?string;
/** @return list<AttributeReflection> */
public function getAttributes(): array;
}