automatewoo/includes/Jobs/JobRegistryInterface.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

35 lines
700 B
PHP

<?php
namespace AutomateWoo\Jobs;
use AutomateWoo\Exceptions\InvalidArgument;
use AutomateWoo\Exceptions\InvalidClass;
/**
* Interface JobRegistryInterface.
*
* @since 5.1.0
*/
interface JobRegistryInterface {
/**
* Get a single registered job.
*
* @param string $name
*
* @return JobInterface
*
* @throws JobException If the job is not found.
* @throws InvalidClass|InvalidArgument When there is an invalid job class.
*/
public function get( string $name ): JobInterface;
/**
* Get an array of all registered jobs.
*
* @return JobInterface[]
*
* @throws InvalidClass|InvalidArgument When there is an error loading jobs.
*/
public function list(): array;
}