File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/InvalidTerm.php.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidTerm.php 0000644 00000001231 15155106226 0032502 0 ustar 00 var/www/vhosts <?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 ) );
}
}