/var/www/html_uk/wp-content/plugins/automatewoo/includes/Jobs/JobRegistryInterface.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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 getstring $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;
}