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/InvalidArray.php.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidArray.php000064400000001605151547460320032662 0ustar00var/www/vhosts<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Exception;

use InvalidArgumentException;

defined( 'ABSPATH' ) || exit;

/**
 * Class InvalidArray
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Exception
 */
class InvalidArray extends InvalidArgumentException implements GoogleListingsAndAdsException {

	/**
	 * Return a new instance of the exception when specific keys are missing from an array.
	 *
	 * @param string $method       The method where the keys were to be provided.
	 * @param array  $missing_keys The array of key names that were missing. This should be value-based.
	 *
	 * @return static
	 */
	public static function missing_keys( string $method, array $missing_keys ) {
		return new static(
			sprintf(
				'The array provided to %s was missing the following keys: %s',
				$method,
				join( ',', $missing_keys )
			)
		);
	}
}