Update::getUpdate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zored\Telegram\Entity\Bot;
6
7
use JMS\Serializer\Annotation as Serializer;
8
use Zored\Telegram\Entity\Bot\Update\UpdateData;
9
10
/**
11
 * @see vendor/danog/madelineproto/bot.php
12
 */
13
class Update
14
{
15
    /**
16
     * @Serializer\Type("integer")
17
     *
18
     * @var int
19
     */
20
    private $update_id;
21
22
    /**
23
     * @Serializer\Type("Zored\Telegram\Entity\Bot\Update\UpdateData")
24
     *
25
     * @var UpdateData
26
     */
27
    private $update;
28
29
    public function getUpdateId(): int
30
    {
31
        return $this->update_id;
32
    }
33
34
    public function setUpdateId(int $update_id): self
35
    {
36
        $this->update_id = $update_id;
37
38
        return $this;
39
    }
40
41
    public function getUpdate(): UpdateData
42
    {
43
        return $this->update;
44
    }
45
46
    public function setUpdate(UpdateData $update): self
47
    {
48
        $this->update = $update;
49
50
        return $this;
51
    }
52
}
53