1 | <?php |
||
8 | class InterfaceRemoved extends Operation { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $code = 'V033'; |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $reason = 'Interface was removed.'; |
||
17 | /** |
||
18 | * @var |
||
19 | */ |
||
20 | protected $fileBefore; |
||
21 | /** |
||
22 | * @var \PhpParser\Node\Stmt\Interface_ |
||
23 | */ |
||
24 | protected $interfaceBefore; |
||
25 | |||
26 | /** |
||
27 | * @param string $fileBefore |
||
28 | * @param \PhpParser\Node\Stmt\Interface_ $interfaceBefore |
||
29 | */ |
||
30 | 1 | public function __construct($fileBefore, Interface_ $interfaceBefore) |
|
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getLocation() |
||
40 | { |
||
41 | return $this->fileBefore; |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return int |
||
46 | */ |
||
47 | public function getLine() |
||
48 | { |
||
49 | return $this->interfaceBefore->getLine(); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | 1 | public function getTarget() |
|
59 | } |
||
60 |