Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | abstract class AbstractCommand |
||
11 | { |
||
12 | protected $runtime; |
||
13 | |||
14 | protected $index; |
||
15 | |||
16 | public function __construct(Runtime $runtime) |
||
17 | { |
||
18 | $this->runtime = $runtime; |
||
19 | } |
||
20 | |||
21 | abstract public function exec(): void; |
||
22 | |||
23 | public function setIndex(int $index): void |
||
24 | { |
||
25 | $this->index = $index; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return int |
||
30 | * @throws Exception |
||
31 | */ |
||
32 | public function getIndex(): int |
||
38 | } |
||
39 | } |
||
40 |