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

BaseAddonPage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A for_addon() 0 2 1
1
<?php
2
3
namespace BulkWP\BulkDelete\Core\Base;
4
5
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
6
7
/**
8
 * Base class for an Add-on page.
9
 *
10
 * @since 6.0.0
11
 */
12
abstract class BaseAddonPage extends BaseDeletePage {
13
	/**
14
	 * Details about the add-on to which this page is added.
15
	 *
16
	 * @var \BulkWP\BulkDelete\Core\Addon\AddonInfo
17
	 */
18
	protected $addon_info;
19
20
	/**
21
	 * Set the add-on in which this page is part of.
22
	 *
23
	 * @param \BulkWP\BulkDelete\Core\Addon\AddonInfo $addon_info Add-on info.
24
	 */
25
	public function for_addon( $addon_info ) {
26
		$this->addon_info = $addon_info;
27
	}
28
}
29