forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMethodPrototypeReflection.php
More file actions
80 lines (65 loc) · 1.27 KB
/
Copy pathMethodPrototypeReflection.php
File metadata and controls
80 lines (65 loc) · 1.27 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
<?php declare(strict_types = 1);
namespace PHPStan\Reflection;
use PHPStan\Type\Type;
final class MethodPrototypeReflection implements ClassMemberReflection
{
/**
* @param ParametersAcceptor[] $variants
*/
public function __construct(
private string $name,
private ClassReflection $declaringClass,
private bool $isStatic,
private bool $isPrivate,
private bool $isPublic,
private bool $isAbstract,
private bool $isInternal,
private array $variants,
private ?Type $tentativeReturnType,
)
{
}
public function getName(): string
{
return $this->name;
}
public function getDeclaringClass(): ClassReflection
{
return $this->declaringClass;
}
public function isStatic(): bool
{
return $this->isStatic;
}
public function isPrivate(): bool
{
return $this->isPrivate;
}
public function isPublic(): bool
{
return $this->isPublic;
}
public function isAbstract(): bool
{
return $this->isAbstract;
}
public function isInternal(): bool
{
return $this->isInternal;
}
public function getDocComment(): ?string
{
return null;
}
/**
* @return ParametersAcceptor[]
*/
public function getVariants(): array
{
return $this->variants;
}
public function getTentativeReturnType(): ?Type
{
return $this->tentativeReturnType;
}
}