-
Notifications
You must be signed in to change notification settings - Fork 426
/
WrappedExtendedMethodReflection.php
85 lines (66 loc) · 1.48 KB
/
WrappedExtendedMethodReflection.php
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
<?php declare(strict_types = 1);
namespace PHPStan\Reflection;
use PHPStan\TrinaryLogic;
use PHPStan\Type\Type;
class WrappedExtendedMethodReflection implements ExtendedMethodReflection
{
public function __construct(private MethodReflection $method)
{
}
public function getDeclaringClass(): ClassReflection
{
return $this->method->getDeclaringClass();
}
public function isStatic(): bool
{
return $this->method->isStatic();
}
public function isPrivate(): bool
{
return $this->method->isPrivate();
}
public function isPublic(): bool
{
return $this->method->isPublic();
}
public function getDocComment(): ?string
{
return $this->method->getDocComment();
}
public function getName(): string
{
return $this->method->getName();
}
public function getPrototype(): ClassMemberReflection
{
return $this->method->getPrototype();
}
public function getVariants(): array
{
return $this->method->getVariants();
}
public function isDeprecated(): TrinaryLogic
{
return $this->method->isDeprecated();
}
public function getDeprecatedDescription(): ?string
{
return $this->method->getDeprecatedDescription();
}
public function isFinal(): TrinaryLogic
{
return $this->method->isFinal();
}
public function isInternal(): TrinaryLogic
{
return $this->method->isInternal();
}
public function getThrowType(): ?Type
{
return $this->method->getThrowType();
}
public function hasSideEffects(): TrinaryLogic
{
return $this->method->hasSideEffects();
}
}