File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/InvalidProperty.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/Exception/InvalidProperty.php 0000644 00000001347 15154712214 0033426 0 ustar 00 var/www/vhosts/uyarreklam.com.tr <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Exception;
use LogicException;
/**
* InvalidProperty class.
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Exception
*/
class InvalidProperty extends LogicException implements GoogleListingsAndAdsException {
/**
* Create a new instance of the exception for a class property that should not be null.
*
* @param string $class_name The class name.
* @param string $property The class property name.
*
* @return static
*/
public static function not_null( string $class_name, string $property ) {
return new static(
sprintf(
'The class "%s" property "%s" must be set.',
$class_name,
$property
)
);
}
}