Completed
Pull Request — master (#3)
by Romain
01:42
created

AbstractCallbackEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 41
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getSenderId() 0 4 1
A getRecipientId() 0 4 1
1
<?php
2
namespace Kerox\Messenger\Callback;
3
4
abstract class AbstractCallbackEvent
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
    public function __construct(string $senderId, string $recipientId)
24
    {
25
        $this->senderId = $senderId;
26
        $this->recipientId = $recipientId;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getSenderId(): string
33
    {
34
        return $this->senderId;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getRecipientId(): string
41
    {
42
        return $this->recipientId;
43
    }
44
}