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

AbstractManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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