Completed
Push — master ( 6a09d7...558842 )
by Sam
04:37
created

InstanceSeenEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getInstance() 0 4 1
1
<?php
2
3
namespace Jalle19\StatusManager\Event;
4
5
use Jalle19\tvheadend\Tvheadend;
6
use Symfony\Component\EventDispatcher\Event;
7
8
/**
9
 * Instance seen event
10
 *
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 InstanceSeenEvent extends Event
16
{
17
18
	/**
19
	 * @var Tvheadend
20
	 */
21
	private $_instance;
22
23
24
	/**
25
	 * @param Tvheadend $instance
26
	 */
27
	public function __construct(Tvheadend $instance)
28
	{
29
		$this->_instance = $instance;
30
	}
31
32
33
	/**
34
	 * @return Tvheadend
35
	 */
36
	public function getInstance()
37
	{
38
		return $this->_instance;
39
	}
40
41
}
42