/var/www/html_us/wp-content/plugins/woocommerce/src/Blocks/Domain/Services/FeatureGating.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace Automattic\WooCommerce\Blocks\Domain\Services;

use 
Automattic\WooCommerce\Admin\DeprecatedClassFacade;

/**
 * Service class that used to handle feature flags. That functionality
 * is removed now and it is only used to determine "environment".
 *
 * @internal
 *
 * @deprecated since 9.6.0, use wp_get_environment_type() instead.
 */
class FeatureGating extends DeprecatedClassFacade {
    
/**
     * The version that this class was deprecated in.
     *
     * @var string
     */
    
protected static $deprecated_in_version '9.6.0';

    
/**
     * Constructor
     *
     * @param string $environment Hardcoded environment value. Useful for tests.
     */
    
public function __construct$environment 'unset' ) {
    }
}