Passed
Push — develop ( e6b589...a2874e )
by Romain
02:29
created

AbstractEvent::getRecipientId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Kerox\Messenger\Event;
3
4
abstract class AbstractEvent
5
{
6
7
    /**
8
     * @var string
9
     */
10
    protected $senderId;
11
12
    /**
13
     * @var string
14
     */
15
    protected $recipientId;
16
17
    /**
18
     * AbstractCallbackEvent constructor.
19
     *
20
     * @param string $senderId
21
     * @param string $recipientId
22
     */
23 18
    public function __construct(string $senderId, string $recipientId)
24
    {
25 18
        $this->senderId = $senderId;
26 18
        $this->recipientId = $recipientId;
27 18
    }
28
29
    /**
30
     * @return string
31
     */
32 7
    public function getSenderId(): string
33
    {
34 7
        return $this->senderId;
35
    }
36
37
    /**
38
     * @return string
39
     */
40 7
    public function getRecipientId(): string
41
    {
42 7
        return $this->recipientId;
43
    }
44
}
45