scheduler: populate missing return type information

This commit is contained in:
Dylan K. Taylor
2020-01-19 17:11:12 +00:00
parent 1cc7027f92
commit f5a18df835
5 changed files with 51 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ class TaskHandler{
/**
* @param int $ticks
*
* @return void
*/
public function setNextRun(int $ticks){
$this->nextRun = $ticks;
@@ -135,6 +137,9 @@ class TaskHandler{
return $this->period;
}
/**
* @return void
*/
public function cancel(){
try{
if(!$this->isCancelled()){
@@ -145,6 +150,9 @@ class TaskHandler{
}
}
/**
* @return void
*/
public function remove(){
$this->cancelled = true;
$this->task->setHandler(null);
@@ -152,6 +160,8 @@ class TaskHandler{
/**
* @param int $currentTick
*
* @return void
*/
public function run(int $currentTick){
$this->timings->startTiming();