File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/IsEnumTrait.php.tar
wp-content/plugins/google-listings-and-ads/src/Product/AttributeMapping/Traits/IsEnumTrait.php 0000644 00000001104 15155513741 0036702 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Product\AttributeMapping\Traits;
defined( 'ABSPATH' ) || exit;
/**
* Trait for enums
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Product\AttributeMapping\Traits
*/
trait IsEnumTrait {
/**
* Returns true for the is_enum property
*
* @return true
*/
public static function is_enum(): bool {
return true;
}
/**
* Returns the attribute sources
*
* @return array
*/
public static function get_sources(): array {
return self::get_value_options();
}
}