Completed
Push — master ( 37bdb3...5c343e )
by David
03:17 queued 10s
created

Wordlift_Batch_Analysis_Page   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 73
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 73
rs 10
c 0
b 0
f 0
wmc 7
lcom 0
cbo 1

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A get_parent_slug() 0 4 1
A get_capability() 0 4 1
A get_page_title() 0 4 1
A get_menu_title() 0 4 1
A get_menu_slug() 0 4 1
A get_partial_name() 0 4 1
1
<?php
2
/**
3
 * Pages: Batch analysis admin page.
4
 *
5
 * Handles the WordLift batch analysis admin page.
6
 *
7
 * @since      3.14.0
8
 * @package    Wordlift
9
 * @subpackage Wordlift/admin
10
 */
11
12
/**
13
 * Define the {@link Wordlift_Batch_analysis_page} class.
14
 *
15
 * @since      3.14.0
16
 * @package    Wordlift
17
 * @subpackage Wordlift/admin
18
 */
19
class Wordlift_Batch_Analysis_Page extends Wordlift_Admin_Page {
20
21
	/**
22
	 * The {@link Wordlift_Batch_analysis_Service} instance.
23
	 *
24
	 * @since 3.14.0
25
	 *
26
	 * @var \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_analysis_Service} instance.
27
	 */
28
	public $batch_analysis_service;
29
30
	/**
31
	 * The {@link Wordlift_Batch_Analysis_page} instance.
32
	 *
33
	 * @since 3.14.0
34
	 *
35
	 * @param \Wordlift_Batch_Analysis_Service $batch_analysis_service The {@link Wordlift_Batch_analysis_Service} instance.
36
	 */
37
	public function __construct( $batch_analysis_service ) {
38
39
		$this->batch_analysis_service = $batch_analysis_service;
40
41
	}
42
43
	/**
44
	 * @inheritdoc
45
	 */
46
	function get_parent_slug() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
47
48
		return 'wl_admin_menu';
49
	}
50
51
	/**
52
	 * @inheritdoc
53
	 */
54
	function get_capability() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
55
56
		return 'manage_options';
57
	}
58
59
	/**
60
	 * @inheritdoc
61
	 */
62
	function get_page_title() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
63
64
		return __( 'Batch Analysis', 'wordlift' );
65
	}
66
67
	/**
68
	 * @inheritdoc
69
	 */
70
	function get_menu_title() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
71
72
		return __( 'Batch Analysis', 'wordlift' );
73
	}
74
75
	/**
76
	 * @inheritdoc
77
	 */
78
	function get_menu_slug() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
79
80
		return 'wl_batch_analysis_menu';
81
	}
82
83
	/**
84
	 * @inheritdoc
85
	 */
86
	function get_partial_name() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
87
88
		return 'wordlift-admin-batch-analysis-page.php';
89
	}
90
91
}
92