Delete unnecessary methods from dummy queue driver

This commit is contained in:
Kijin Sung 2024-12-12 11:18:50 +09:00
parent a2cdd3d897
commit caf882fed0

View file

@ -104,34 +104,6 @@ class Dummy implements QueueInterface
return 0;
}
/**
* Add a task to be executed at a specific time.
*
* @param int $time
* @param string $handler
* @param ?object $args
* @param ?object $options
* @return int
*/
public function addTaskAt(int $time, string $handler, ?object $args = null, ?object $options = null): int
{
return 1;
}
/**
* Add a task to be executed at an interval.
*
* @param string $interval
* @param string $handler
* @param ?object $args
* @param ?object $options
* @return int
*/
public function addTaskAtInterval(string $interval, string $handler, ?object $args = null, ?object $options = null): int
{
return 2;
}
/**
* Get the next task from the queue.
*
@ -144,26 +116,4 @@ class Dummy implements QueueInterface
$this->_dummy_queue = null;
return $result;
}
/**
* Get scheduled tasks.
*
* @param string $type
* @return array
*/
public function getScheduledTasks(string $type): array
{
return [];
}
/**
* Update the last executed timestamp of a scheduled task.
*
* @param object $task
* @return void
*/
public function updateLastRunTimestamp(object $task): void
{
}
}