mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
Add abstract function
This commit is contained in:
parent
47dfb029f7
commit
6a14f221ee
|
|
@ -181,4 +181,16 @@ abstract class SchedulerAbstract
|
||||||
{
|
{
|
||||||
$this->run($task->getCommand());
|
$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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user