Current Path : /storage/v11800/lifespanstoresnew/public_html/wp-content/plugins/google-listings-and-ads/src/Exception/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/lifespanstoresnew/public_html/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidOption.php |
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Exception;
use LogicException;
defined( 'ABSPATH' ) || exit;
/**
* Class InvalidOption
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Exception
*/
class InvalidOption extends LogicException implements GoogleListingsAndAdsException {
/**
* Create a new instance of the exception when an invalid option name is provided.
*
* @param string $name The option name.
*
* @return static
*/
public static function invalid_name( string $name ) {
return new static( sprintf( 'The option name "%s" is not valid.', $name ) );
}
}