oont-contents/plugins/google-listings-and-ads/src/Jobs/JobInterface.php
2025-02-08 15:10:23 +01:00

32 lines
681 B
PHP

<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Jobs;
use Automattic\WooCommerce\GoogleListingsAndAds\Internal\DependencyManagement\JobServiceProvider;
defined( 'ABSPATH' ) || exit;
/**
* Interface JobInterface
*
* Note: In order for the jobs to be initialized/registered, they need to be added to the container.
*
* @see JobServiceProvider to add job classes to the container.
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Jobs
*/
interface JobInterface {
/**
* Get the name of the job.
*
* @return string
*/
public function get_name(): string;
/**
* Init the job.
*/
public function init(): void;
}