1 | <?php |
||
19 | class Jetpack_WooCommerce_Analytics { |
||
20 | |||
21 | /** |
||
22 | * Instance of this class |
||
23 | * |
||
24 | * @var Jetpack_WooCommerce_Analytics - Static property to hold our singleton instance |
||
25 | */ |
||
26 | private static $instance = false; |
||
27 | |||
28 | /** |
||
29 | * Instance of the Universal functions |
||
30 | * |
||
31 | * @var Static property to hold concrete analytics impl that does the work (universal or legacy) |
||
32 | */ |
||
33 | private static $analytics = false; |
||
|
|||
34 | |||
35 | /** |
||
36 | * WooCommerce Analytics is only available to Jetpack connected WooCommerce stores with both plugins set to active |
||
37 | * and WooCommerce version 3.0 or higher |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | public static function shouldTrackStore() { |
||
70 | |||
71 | /** |
||
72 | * This is our constructor, which is private to force the use of get_instance() |
||
73 | * |
||
74 | * @return void |
||
75 | */ |
||
76 | private function __construct() { |
||
79 | |||
80 | /** |
||
81 | * Function to instantiate our class and make it a singleton |
||
82 | */ |
||
83 | public static function get_instance() { |
||
93 | } |
||
94 | |||
97 |
This check marks private properties in classes that are never used. Those properties can be removed.