Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Constants | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
42 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
42 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace NewfoldLabs\WP\Module\Installer\Data; |
| 4 | |
| 5 | use NewfoldLabs\WP\ModuleLoader\Container; |
| 6 | |
| 7 | /** |
| 8 | * Manages all the constants for the module. |
| 9 | */ |
| 10 | class 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_INSTALLER_VERSION' ) ) { |
| 18 | define( 'NFD_INSTALLER_VERSION', '1.7.1' ); |
| 19 | } |
| 20 | if ( ! defined( 'NFD_INSTALLER_BUILD_DIR' ) && defined( 'NFD_INSTALLER_VERSION' ) ) { |
| 21 | define( 'NFD_INSTALLER_BUILD_DIR', dirname( __DIR__, 2 ) . '/build/' . NFD_INSTALLER_VERSION ); |
| 22 | } |
| 23 | if ( ! defined( 'NFD_INSTALLER_BUILD_URL' && defined( 'NFD_INSTALLER_VERSION' ) ) ) { |
| 24 | define( 'NFD_INSTALLER_BUILD_URL', $container->plugin()->url . 'vendor/newfold-labs/wp-module-installer/build/' . NFD_INSTALLER_VERSION ); |
| 25 | } |
| 26 | } |
| 27 | } |