PongEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * PongEvent.php
4
 *
5
 * @copyright      More in license.md
6
 * @license        https://www.ipublikuj.eu
7
 * @author         Adam Kadlec <[email protected]>
8
 * @package        iPublikuj:MQTTClient!
9
 * @subpackage     Events
10
 * @since          1.0.0
11
 *
12
 * @date           14.11.19
13
 */
14
15
namespace IPub\MQTTClient\Events;
16
17
use Symfony\Contracts\EventDispatcher;
18
19
use IPub\MQTTClient\Client;
20
21
/**
22
 * PONG event
23
 *
24
 * @package        iPublikuj:MQTTClient!
25
 * @subpackage     Events
26
 *
27
 * @author         Adam Kadlec <[email protected]>
28
 */
29
final class PongEvent extends EventDispatcher\Event
30
{
31
	/**
32
	 * @var Client\IClient
33
	 */
34
	private $client;
35
36
	/**
37
	 * @param Client\IClient $client
38
	 */
39
	public function __construct(
40
		Client\IClient $client
41
	) {
42
		$this->client = $client;
43
	}
44
45
	/**
46
	 * @return Client\IClient
47
	 */
48
	public function getClient() : Client\IClient
49
	{
50
		return $this->client;
51
	}
52
}
53