Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/maze/wp-content/plugins/reddit-for-woocommerce/includes/ |
Upload File : |
<?php
/**
* Defines a centralized list of service identifiers for the Ad Partner plugin.
*
* This class acts as an enum-like container for service keys used throughout the plugin,
* especially within the ServiceContainer. By referencing constants instead of string literals,
* it improves type safety, readability, and maintainability.
*
* @package RedditForWooCommerce
*/
namespace RedditForWooCommerce;
/**
* Enum-like container for service identifiers.
*
* These constants represent the valid service keys that can be requested from the ServiceContainer.
* Using constants avoids typos and ensures consistent service resolution throughout the plugin.
*
* This approach also provides a smoother upgrade path to PHP 8.1 native enums in the future.
*
* @since 0.1.0
*/
final class ServiceKey {
/**
* Identifier for the Jetpack authenticator service.
*
* @since 0.1.0
*/
public const JETPACK_AUTHENTICATOR = 'jetpack_authenticator';
/**
* Identifier for the WCS API client service.
*
* @since 0.1.0
*/
public const WCS_CLIENT = 'wcs_client';
/**
* Identifier for the Global Site Tag service.
*
* @since 0.1.0
*/
public const GLOBAL_SITE_TAG = 'global_site_tag';
/**
* Identifier for the pixel tracking service.
*
* @since 0.1.0
*/
public const PIXEL_TRACKING = 'pixel_tracking';
/**
* Identifier for the conversion tracking service.
*
* @since 0.1.0
*/
public const CONVERSION_TRACKING = 'conversion_tracking';
/**
* Identifier for the Admin related services and features.
*
* @since 0.1.0
*/
public const ADMIN_SETUP = 'admin_setup';
/**
* Identifier for the Admin related services and features.
*
* @since 0.1.0
*/
public const PRODUCT_EXPORT_SERVICE = 'product_export_service';
/**
* Identifier for the Settings REST Controller Setup
*
* @since 0.1.0
*/
public const SETTINGS_REST_CONTROLLER_SETUP = 'settings_rest_controller_setup';
}