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

BaseCommand

Complexity

Total Complexity 0

Size/Duplication

Total Lines 1
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
wmc 0
1
<?php
2
namespace BulkWP\BulkDelete\Core\Base;
3
4
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
5
6
/**
7
 * Base class for a Bulk Delete WP CLI command.
8
 *
9
 * @since 6.1.0
10
 */
11
abstract class BaseCommand extends \WP_CLI_Command {
0 ignored issues
show
Bug introduced by
The type WP_CLI_Command was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
	/**
13
	 * Get the command.
14
	 *
15
	 * This method is commented since PHP doesn't allow static abstract methods in PHP 5.6 or below.
16
	 * Refer to https://stackoverflow.com/a/31235907/24949 for the full explanation.
17
	 *
18
	 * Once WordPress increases the minimum PHP to 7.0 or above this method will be uncommented.
19
	 *
20
	 * @return string Command name.
21
	 */
22
	// abstract public static function get_command();
23
}
24