Completed
Push — 247-fix/delete-term-meta ( d5f818...2a1fe3 )
by Sudar
67:09 queued 61:16
created

SchedulerAddon   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
1
<?php
2
3
namespace BulkWP\BulkDelete\Core\Addon;
4
5
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
6
7
/**
8
 * Encapsulates the logic for a Scheduler add-on.
9
 *
10
 * All Scheduler add-ons will be extending this class.
11
 *
12
 * @since 6.0.0
13
 */
14
abstract class SchedulerAddon extends BaseAddon {
15
	/**
16
	 * Name of the Scheduler class.
17
	 *
18
	 * @var string
19
	 */
20
	protected $scheduler_class_name;
21
22
	/**
23
	 * Register and setup the add-on.
24
	 */
25
	public function register() {
26
		$scheduler = new $this->scheduler_class_name();
27
		$scheduler->register();
28
	}
29
}
30