Current Path : /storage/v11800/romasitenew/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/romasitenew/public_html/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidTerm.php |
<?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Exception;
use InvalidArgumentException;
defined( 'ABSPATH' ) || exit;
/**
* Class InvalidTerm
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Exception
*/
class InvalidTerm extends InvalidArgumentException implements GoogleListingsAndAdsException {
/**
* Create a new instance of the exception when a text contains invalid terms.
*
* @param string $text
*
* @return InvalidTerm
*/
public static function contains_invalid_terms( string $text ): InvalidTerm {
return new static( sprintf( 'The text "%s" contains invalid terms.', $text ) );
}
}