1 | <?php |
||
18 | class JoinableOpcode extends Opcode implements PositionInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | private $id; |
||
24 | |||
25 | /** |
||
26 | * @var Readable |
||
27 | */ |
||
28 | private $file; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $offset; |
||
34 | |||
35 | /** |
||
36 | * @var \Closure |
||
37 | */ |
||
38 | private $description; |
||
39 | |||
40 | /** |
||
41 | * JoinableOpcode constructor. |
||
42 | * @param OpcodeInterface $opcode |
||
43 | * @param int $id |
||
44 | * @param Readable $file |
||
45 | * @param int $offset |
||
46 | */ |
||
47 | public function __construct(OpcodeInterface $opcode, int $id, Readable $file, int $offset = 0) |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getDescription(): string |
||
68 | |||
69 | /** |
||
70 | * @return Readable |
||
71 | */ |
||
72 | public function getFile(): Readable |
||
76 | |||
77 | /** |
||
78 | * @return PositionInterface |
||
79 | */ |
||
80 | private function getPosition(): PositionInterface |
||
84 | |||
85 | /** |
||
86 | * @return int |
||
87 | */ |
||
88 | public function getLine(): int |
||
92 | |||
93 | /** |
||
94 | * @return int |
||
95 | */ |
||
96 | public function getColumn(): int |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getId(): int |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | public function __toString(): string |
||
122 | } |
||
123 |