Completed
Push — master ( b2dfe1...1412d2 )
by Sam
02:32
created

InstanceCollectionEvent::getInstances()   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\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
/**
8
 * Class InstanceCollectionEvent
9
 * @package   Jalle19\StatusManager\Event
10
 * @copyright Copyright &copy; Sam Stenvall 2016-
11
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
12
 */
13
class InstanceCollectionEvent extends Event
14
{
15
16
	/**
17
	 * @var \SplObjectStorage
18
	 */
19
	private $_instances;
20
21
22
	/**
23
	 * InstanceCollectionEvent constructor.
24
	 *
25
	 * @param \SplObjectStorage $instances
26
	 */
27
	public function __construct($instances)
28
	{
29
		$this->_instances = $instances;
30
	}
31
32
33
	/**
34
	 * @return \SplObjectStorage
35
	 */
36
	public function getInstances()
37
	{
38
		return $this->_instances;
39
	}
40
41
}
42