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

PostbackEvent::getPostback()   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\Postback;
5
6
class PostbackEvent extends AbstractCallbackEvent
7
{
8
9
    /**
10
     * @var \Kerox\Messenger\Model\Callback\Postback
11
     */
12
    protected $postback;
13
14
    /**
15
     * PostbackEvent constructor.
16
     *
17
     * @param string $senderId
18
     * @param string $recipientId
19
     * @param int $timestamp
20
     * @param \Kerox\Messenger\Model\Callback\Postback $postback
21
     */
22
    public function __construct(string $senderId, string $recipientId, int $timestamp, Postback $postback)
23
    {
24
        parent::__construct($senderId, $recipientId, $timestamp);
25
26
        $this->postback = $postback;
27
    }
28
29
    /**
30
     * @return \Kerox\Messenger\Model\Callback\Postback
31
     */
32
    public function getPostback(): Postback
33
    {
34
        return $this->postback;
35
    }
36
}