forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRewrittenDeclaringClassClassConstantReflection.php
More file actions
122 lines (97 loc) · 2.45 KB
/
RewrittenDeclaringClassClassConstantReflection.php
File metadata and controls
122 lines (97 loc) · 2.45 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php declare(strict_types = 1);
namespace PHPStan\Rules\RestrictedUsage;
use PhpParser\Node\Expr;
use PHPStan\PhpDoc\ResolvedPhpDocBlock;
use PHPStan\Reflection\ClassConstantReflection;
use PHPStan\Reflection\ClassReflection;
use PHPStan\TrinaryLogic;
use PHPStan\Type\Type;
final class RewrittenDeclaringClassClassConstantReflection implements ClassConstantReflection
{
public function __construct(
private ClassReflection $declaringClass,
private ClassConstantReflection $constantReflection,
)
{
}
public function getValueExpr(): Expr
{
return $this->constantReflection->getValueExpr();
}
public function isFinal(): bool
{
return $this->constantReflection->isFinal();
}
public function isFinalByKeyword(): bool
{
return $this->constantReflection->isFinalByKeyword();
}
public function hasPhpDocType(): bool
{
return $this->constantReflection->hasPhpDocType();
}
public function getPhpDocType(): ?Type
{
return $this->constantReflection->getPhpDocType();
}
public function hasNativeType(): bool
{
return $this->constantReflection->hasNativeType();
}
public function getNativeType(): ?Type
{
return $this->constantReflection->getNativeType();
}
public function getAttributes(): array
{
return $this->constantReflection->getAttributes();
}
public function getDeclaringClass(): ClassReflection
{
return $this->declaringClass;
}
public function isStatic(): bool
{
return $this->constantReflection->isStatic();
}
public function isPrivate(): bool
{
return $this->constantReflection->isPrivate();
}
public function isPublic(): bool
{
return $this->constantReflection->isPublic();
}
public function getDocComment(): ?string
{
return $this->constantReflection->getDocComment();
}
public function getName(): string
{
return $this->constantReflection->getName();
}
public function getValueType(): Type
{
return $this->constantReflection->getValueType();
}
public function isDeprecated(): TrinaryLogic
{
return $this->constantReflection->isDeprecated();
}
public function getDeprecatedDescription(): ?string
{
return $this->constantReflection->getDeprecatedDescription();
}
public function isInternal(): TrinaryLogic
{
return $this->constantReflection->isInternal();
}
public function getFileName(): ?string
{
return $this->constantReflection->getFileName();
}
public function getResolvedPhpDoc(): ?ResolvedPhpDocBlock
{
return $this->constantReflection->getResolvedPhpDoc();
}
}