1 | <?php |
||
15 | class PhaseTask extends Task |
||
16 | { |
||
17 | /** @var int $time */ |
||
18 | private static $time; |
||
19 | |||
20 | /** |
||
21 | * PhaseTask constructor. |
||
22 | * |
||
23 | * @param int $time |
||
24 | */ |
||
25 | public function __construct(int $time = 600) |
||
29 | |||
30 | /** |
||
31 | * @param int $currentTick |
||
32 | * |
||
33 | * @throws \ReflectionException |
||
34 | */ |
||
35 | public function onRun(int $currentTick) |
||
43 | |||
44 | /** |
||
45 | * @return int |
||
46 | */ |
||
47 | public static function getTime(): int |
||
51 | |||
52 | /** |
||
53 | * @param int $time |
||
54 | */ |
||
55 | public static function setTime(int $time = 600): void |
||
59 | } |
||
60 |