forked from vimeo/psalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAliases.php
74 lines (61 loc) · 1.73 KB
/
Aliases.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
<?php
declare(strict_types=1);
namespace Psalm;
final class Aliases
{
/**
* @var array<lowercase-string, string>
*/
public array $uses;
/**
* @var array<lowercase-string, string>
*/
public array $uses_flipped;
/**
* @var array<lowercase-string, non-empty-string>
*/
public array $functions;
/**
* @var array<lowercase-string, string>
*/
public array $functions_flipped;
/**
* @var array<string, string>
*/
public array $constants;
/**
* @var array<string, string>
*/
public array $constants_flipped;
public ?string $namespace = null;
public ?int $namespace_first_stmt_start = null;
public ?int $uses_start = null;
public ?int $uses_end = null;
/**
* @param array<lowercase-string, string> $uses
* @param array<lowercase-string, non-empty-string> $functions
* @param array<string, string> $constants
* @param array<lowercase-string, string> $uses_flipped
* @param array<lowercase-string, string> $functions_flipped
* @param array<string, string> $constants_flipped
* @internal
* @psalm-mutation-free
*/
public function __construct(
?string $namespace = null,
array $uses = [],
array $functions = [],
array $constants = [],
array $uses_flipped = [],
array $functions_flipped = [],
array $constants_flipped = [],
) {
$this->namespace = $namespace;
$this->uses = $uses;
$this->functions = $functions;
$this->constants = $constants;
$this->uses_flipped = $uses_flipped;
$this->functions_flipped = $functions_flipped;
$this->constants_flipped = $constants_flipped;
}
}