Completed
Push — master ( b2dfe1...1412d2 )
by Sam
02:32
created

AbstractManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getApplication() 0 4 1
1
<?php
2
3
namespace Jalle19\StatusManager\Manager;
4
5
use Jalle19\StatusManager\Application;
6
7
/**
8
 * Base class for all managers. Every manager can access the application, from which common things like the
9
 * configuration, the logger etc. can be accessed.
10
 *
11
 * @package   Jalle19\StatusManager\Manager
12
 * @copyright Copyright &copy; Sam Stenvall 2016-
13
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
14
 */
15
abstract class AbstractManager
16
{
17
18
	/**
19
	 * @var Application
20
	 */
21
	private $_application;
22
23
24
	/**
25
	 * AbstractManager constructor.
26
	 *
27
	 * @param Application $application
28
	 */
29
	public function __construct(Application $application)
30
	{
31
		$this->_application = $application;
32
	}
33
34
35
	/**
36
	 * @return Application
37
	 */
38
	protected function getApplication()
39
	{
40
		return $this->_application;
41
	}
42
43
}
44