forked from phpstan/phpstan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNativeFunctionReflection.php
More file actions
68 lines (54 loc) · 1.1 KB
/
Copy pathNativeFunctionReflection.php
File metadata and controls
68 lines (54 loc) · 1.1 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
<?php declare(strict_types = 1);
namespace PHPStan\Reflection\Native;
use PHPStan\Type\Type;
class NativeFunctionReflection implements \PHPStan\Reflection\FunctionReflection
{
/** @var string */
private $name;
/** @var \PHPStan\Reflection\ParametersAcceptor[] */
private $variants;
/** @var \PHPStan\Type\Type|null */
private $throwType;
/**
* @param string $name
* @param \PHPStan\Reflection\ParametersAcceptor[] $variants
* @param \PHPStan\Type\Type|null $throwType
*/
public function __construct(
string $name,
array $variants,
?Type $throwType
)
{
$this->name = $name;
$this->variants = $variants;
$this->throwType = $throwType;
}
public function getName(): string
{
return $this->name;
}
/**
* @return \PHPStan\Reflection\ParametersAcceptor[]
*/
public function getVariants(): array
{
return $this->variants;
}
public function getThrowType(): ?Type
{
return $this->throwType;
}
public function isDeprecated(): bool
{
return false;
}
public function isInternal(): bool
{
return false;
}
public function isFinal(): bool
{
return false;
}
}