File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/InvalidState.php.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidState.php0000644 00000001211 15155106153 0032650 0 ustar 00 var/www/vhosts <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Exception;
use InvalidArgumentException;
defined( 'ABSPATH' ) || exit;
/**
* Class InvalidState
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Exception
*/
class InvalidState extends InvalidArgumentException implements GoogleListingsAndAdsException {
/**
* Create a new instance of the exception when an invalid state is requested.
*
* @param string $state
*
* @return InvalidState
*/
public static function from_state( string $state ): InvalidState {
return new static( sprintf( 'The state %s is not valid.', $state ) );
}
}