Passed
Push — 677-feature/add-wp-cli-support ( 8a68ba...d28ac0 )
by Sudar
05:15
created

SystemInfoCommand::get_command()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace BulkWP\BulkDelete\Core\CLI\Commands;
4
5
use BulkWP\BulkDelete\Core\Base\BaseCommand;
6
use BulkWP\BulkDelete\Core\SystemInfo\BulkDeleteSystemInfo;
7
8
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
9
10
/**
11
 * SystemInfo CLI Command.
12
 *
13
 * @since 6.1.0
14
 */
15
class SystemInfoCommand extends BaseCommand {
16
	/**
17
	 * Get the command.
18
	 *
19
	 * @return string Command name.
20
	 */
21
	public static function get_command() {
22
		return 'system-info';
23
	}
24
25
	/**
26
	 * Print System Info.
27
	 *
28
	 * @subcommand print
29
	 */
30
	public function get() {
31
		$system_info = new BulkDeleteSystemInfo( 'bulk-delete' );
32
		$system_info->print_bulk_delete_details();
33
	}
34
}
35