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

SystemInfoCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 18
ccs 0
cts 6
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_command() 0 2 1
A get() 0 3 1
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