Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
WPCLI | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
12 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
12 |
1 | <?php |
2 | |
3 | namespace NewfoldLabs\WP\Module\Installer\WPCLI; |
4 | |
5 | use NewfoldLabs\WP\Module\Installer\WPCLI\Handlers\InstallerCommandHandler; |
6 | use WP_CLI; |
7 | |
8 | /** |
9 | * Class WPCLI |
10 | * |
11 | * Handles registering WP-CLI commands for the Installer module. |
12 | */ |
13 | class WPCLI { |
14 | /** |
15 | * Constructor for WPCLI class. |
16 | */ |
17 | public function __construct() { |
18 | if ( defined( 'WP_CLI' ) && WP_CLI ) { |
19 | WP_CLI::add_command( 'installer', InstallerCommandHandler::class ); |
20 | } |
21 | } |
22 | } |