forked from vimeo/psalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AfterClassLikeExistenceCheckEvent.php
86 lines (76 loc) · 1.82 KB
/
AfterClassLikeExistenceCheckEvent.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
86
<?php
namespace Psalm\Plugin\EventHandler\Event;
use Psalm\CodeLocation;
use Psalm\Codebase;
use Psalm\FileManipulation;
use Psalm\StatementsSource;
final class AfterClassLikeExistenceCheckEvent
{
/**
* @var string
*/
private $fq_class_name;
/**
* @var CodeLocation
*/
private $code_location;
/**
* @var StatementsSource
*/
private $statements_source;
/**
* @var Codebase
*/
private $codebase;
/**
* @var FileManipulation[]
*/
private $file_replacements;
/**
* @param FileManipulation[] $file_replacements
* @internal
*/
public function __construct(
string $fq_class_name,
CodeLocation $code_location,
StatementsSource $statements_source,
Codebase $codebase,
array $file_replacements = []
) {
$this->fq_class_name = $fq_class_name;
$this->code_location = $code_location;
$this->statements_source = $statements_source;
$this->codebase = $codebase;
$this->file_replacements = $file_replacements;
}
public function getFqClassName(): string
{
return $this->fq_class_name;
}
public function getCodeLocation(): CodeLocation
{
return $this->code_location;
}
public function getStatementsSource(): StatementsSource
{
return $this->statements_source;
}
public function getCodebase(): Codebase
{
return $this->codebase;
}
/**
* @return FileManipulation[]
*/
public function getFileReplacements(): array
{
return $this->file_replacements;
}
/**
* @param FileManipulation[] $file_replacements
*/
public function setFileReplacements(array $file_replacements): void
{
$this->file_replacements = $file_replacements;
}
}