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