Completed
Branch develop (c4337b)
by Romain
01:55
created

AccountLinkingEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 4
1
<?php
2
namespace Kerox\Messenger\Callback;
3
4
use Kerox\Messenger\Model\Callback\AccountLinking;
5
6
class AccountLinkingEvent extends AbstractCallbackEvent
7
{
8
9
    /**
10
     * @var \Kerox\Messenger\Model\Callback\AccountLinking
11
     */
12
    protected $accountLinking;
13
14
    /**
15
     * AccountLinkingEvent constructor.
16
     *
17
     * @param string $senderId
18
     * @param string $recipientId
19
     * @param int $timestamp
20
     * @param \Kerox\Messenger\Model\Callback\AccountLinking $accountLinking
21
     */
22
    public function __construct($senderId, $recipientId, $timestamp, AccountLinking $accountLinking)
23
    {
24
        parent::__construct($senderId, $recipientId, $timestamp);
25
26
        $this->accountLinking = $accountLinking;
27
    }
28
29
    /**
30
     * @return \Kerox\Messenger\Model\Callback\AccountLinking
31
     */
32
    public function getAccountLinking(): AccountLinking
33
    {
34
        return $this->accountLinking;
35
    }
36
}