Test Setup Failed
Push — develop ( c4d986...67288c )
by Romain
02:18
created

MessageEchoEvent::getTimestamp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Kerox\Messenger\Callback;
3
4
use Kerox\Messenger\Model\Callback\MessageEcho;
5
6
class MessageEchoEvent extends AbstractCallbackEvent
7
{
8
9
    /**
10
     * @var int
11
     */
12
    protected $timestamp;
13
14
    /**
15
     * @var \Kerox\Messenger\Model\Callback\MessageEcho
16
     */
17
    protected $messageEcho;
18
19
    /**
20
     * MessageEvent constructor.
21
     *
22
     * @param string $senderId
23
     * @param string $recipientId
24
     * @param int $timestamp
25
     * @param \Kerox\Messenger\Model\Callback\MessageEcho $messageEcho
26
     */
27
    public function __construct(string $senderId, string $recipientId, int $timestamp, MessageEcho $messageEcho)
28
    {
29
        parent::__construct($senderId, $recipientId);
30
31
        $this->timestamp = $timestamp;
32
        $this->messageEcho = $messageEcho;
33
    }
34
35
    /**
36
     * @return int
37
     */
38
    public function getTimestamp(): int
39
    {
40
        return $this->timestamp;
41
    }
42
43
    /**
44
     * @return \Kerox\Messenger\Model\Callback\MessageEcho
45
     */
46
    public function getMessageEcho(): MessageEcho
47
    {
48
        return $this->messageEcho;
49
    }
50
}
51