HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/AccountReconnect.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/Exception/AccountReconnect.php000064400000002254151550624630033533 0ustar00var/www/vhosts/uyarreklam.com.tr<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Exception;

defined( 'ABSPATH' ) || exit;

/**
 * Class AccountReconnect
 *
 * Error messages generated in this class should be translated, as they are intended to be displayed
 * to end users.
 *
 * @since 1.12.5
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Exception
 */
class AccountReconnect extends ExceptionWithResponseData {

	/**
	 * Create a new instance of the exception when the Jetpack account is not connected.
	 *
	 * @return static
	 */
	public static function jetpack_disconnected(): AccountReconnect {
		return new static(
			__( 'Please reconnect your Jetpack account.', 'google-listings-and-ads' ),
			401,
			null,
			[
				'status' => 401,
				'code'   => 'JETPACK_DISCONNECTED',
			]
		);
	}

	/**
	 * Create a new instance of the exception when the Google account is not connected.
	 *
	 * @return static
	 */
	public static function google_disconnected(): AccountReconnect {
		return new static(
			__( 'Please reconnect your Google account.', 'google-listings-and-ads' ),
			401,
			null,
			[
				'status' => 401,
				'code'   => 'GOOGLE_DISCONNECTED',
			]
		);
	}
}