From 6a14f221ee14f9deab7d6ff1120207926d60dbd9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Jul 2018 21:53:21 +0200 Subject: [PATCH] Add abstract function --- Utils/TaskSchedule/SchedulerAbstract.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Utils/TaskSchedule/SchedulerAbstract.php b/Utils/TaskSchedule/SchedulerAbstract.php index 25cdf5a8e..489ae85aa 100644 --- a/Utils/TaskSchedule/SchedulerAbstract.php +++ b/Utils/TaskSchedule/SchedulerAbstract.php @@ -181,4 +181,16 @@ abstract class SchedulerAbstract { $this->run($task->getCommand()); } + + /** + * Get all jobs/tasks by name + * + * @param string $name Name of the job + * @param bool $exact Name has to be exact + * + * @return array + * + * @since 1.0.0 + */ + abstract public function getAllByName(string $name, bool $exact = true) : array; }