Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Constants
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
20
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
20
1<?php
2
3namespace NewfoldLabs\WP\Module\Performance\Data;
4
5use NewfoldLabs\WP\ModuleLoader\Container;
6
7/**
8 * Manages all the constants for the performance module.
9 */
10class Constants {
11    /**
12     * Constructor for the Constants class.
13     *
14     * @param Container $container The module container.
15     */
16    public function __construct( $container ) {
17        if ( ! defined( 'NFD_PERFORMANCE_BUILD_DIR' ) ) {
18            define( 'NFD_PERFORMANCE_BUILD_DIR', dirname( __DIR__, 2 ) . '/build' );
19        }
20
21        if ( ! defined( 'NFD_PERFORMANCE_BUILD_URL' ) ) {
22            define( 'NFD_PERFORMANCE_BUILD_URL', $container->plugin()->url . 'vendor/newfold-labs/wp-module-performance/build' );
23        }
24
25        if ( ! defined( 'NFD_MODULE_DATA_EVENTS_API' ) ) {
26            define( 'NFD_MODULE_DATA_EVENTS_API', '/newfold-data/v1/events' );
27        }
28    }
29}