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

PersistInputErrorEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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