Completed
Push — master ( abe4a2...2abbc3 )
by Sam
05:40
created

PersistInputErrorEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getInput() 0 4 1
A getCumulativeErrors() 0 4 1
1
<?php
2
3
namespace Jalle19\StatusManager\Event;
4
5
use Jalle19\StatusManager\Database\Input;
6
use Jalle19\StatusManager\Instance\InputErrorCumulative;
7
use Symfony\Component\EventDispatcher\Event;
8
9
/**
10
 * Class PersistInputErrorEvent
11
 * @package   Jalle19\StatusManager\Event
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
class PersistInputErrorEvent extends Event
16
{
17
18
	/**
19
	 * @var Input
20
	 */
21
	private $_input;
22
23
	/**
24
	 * @var InputErrorCumulative
25
	 */
26
	private $_inputErrors;
27
28
29
	/**
30
	 * InputErrorEvent constructor.
31
	 *
32
	 * @param Input                $input
33
	 * @param InputErrorCumulative $inputErrors
34
	 */
35
	public function __construct(Input $input, InputErrorCumulative $inputErrors)
36
	{
37
		$this->_input       = $input;
38
		$this->_inputErrors = $inputErrors;
39
	}
40
41
42
	/**
43
	 * @return Input
44
	 */
45
	public function getInput()
46
	{
47
		return $this->_input;
48
	}
49
50
51
	/**
52
	 * @return InputErrorCumulative
53
	 */
54
	public function getCumulativeErrors()
55
	{
56
		return $this->_inputErrors;
57
	}
58
59
}
60