File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/ActionSchedulerException.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/ActionScheduler/ActionSchedulerException.php0000644 00000001567 15154634622 0036356 0 ustar 00 var/www/vhosts/uyarreklam.com.tr <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler;
use Automattic\WooCommerce\GoogleListingsAndAds\Exception\GoogleListingsAndAdsException;
use LogicException;
defined( 'ABSPATH' ) || exit;
/**
* Class ActionSchedulerException
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\ActionScheduler
*/
class ActionSchedulerException extends LogicException implements GoogleListingsAndAdsException {
/**
* Create a new exception instance for when a job item is not found.
*
* @param string $action Action name
*
* @return ActionSchedulerException
*/
public static function action_not_found( string $action ): ActionSchedulerException {
return new static(
sprintf(
/* translators: %s: the action name */
__( 'No action matching %s was found.', 'google-listings-and-ads' ),
$action
)
);
}
}