Completed
Push — master ( 3dfec0...098987 )
by Sam
03:00
created

AbstractManager::getApplication()   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 0
1
<?php
2
3
namespace Jalle19\StatusManager\Manager;
4
5
use Jalle19\StatusManager\Configuration\Configuration;
6
use Psr\Log\LoggerInterface;
7
use Symfony\Component\EventDispatcher\EventDispatcher;
8
9
/**
10
 * Base class for all managers
11
 *
12
 * @package   Jalle19\StatusManager\Manager
13
 * @copyright Copyright &copy; Sam Stenvall 2016-
14
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
15
 */
16
abstract class AbstractManager
17
{
18
19
	/**
20
	 * @var Configuration
21
	 */
22
	protected $configuration;
23
24
	/**
25
	 * @var LoggerInterface
26
	 */
27
	protected $logger;
28
29
	/**
30
	 * @var EventDispatcher
31
	 */
32
	protected $eventDispatcher;
33
34
35
	/**
36
	 * AbstractManager constructor.
37
	 *
38
	 * @param Configuration   $configuration
39
	 * @param LoggerInterface $logger
40
	 * @param EventDispatcher $eventDispatcher
41
	 */
42
	public function __construct(Configuration $configuration, LoggerInterface $logger, EventDispatcher $eventDispatcher)
43
	{
44
		$this->configuration   = $configuration;
45
		$this->logger          = $logger;
46
		$this->eventDispatcher = $eventDispatcher;
47
	}
48
49
}
50