1 | <?php |
||
8 | abstract class FunctionOperationDelta extends Operation |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $fileBefore; |
||
14 | /** |
||
15 | * @var \PhpParser\Node\Stmt\Function_ |
||
16 | */ |
||
17 | protected $functionBefore; |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $fileAfter; |
||
22 | /** |
||
23 | * @var \PhpParser\Node\Stmt\Function_ |
||
24 | */ |
||
25 | protected $functionAfter; |
||
26 | |||
27 | /** |
||
28 | * @param string $fileBefore |
||
29 | * @param \PhpParser\Node\Stmt\Function_ $functionBefore |
||
30 | * @param string $fileAfter |
||
31 | * @param \PhpParser\Node\Stmt\Function_ $functionAfter |
||
32 | */ |
||
33 | 4 | public function __construct($fileBefore, Function_ $functionBefore, $fileAfter, Function_ $functionAfter) |
|
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getLocation() |
||
45 | { |
||
46 | return $this->fileBefore; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getLine() |
||
53 | { |
||
54 | return $this->functionAfter->getLine(); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | 3 | public function getTarget() |
|
64 | } |
||
65 |