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

AbstractManager::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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