Message::setIn()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zored\Telegram\Entity\Bot\Update\UpdateData;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
class Message
10
{
11
    /**
12
     * @Serializer\Type("integer")
13
     *
14
     * @var int
15
     */
16
    private $id;
17
18
    /**
19
     * @Serializer\Type("integer")
20
     *
21
     * @var int
22
     */
23
    private $out;
24
25
    /**
26
     * @Serializer\Type("integer")
27
     *
28
     * @var int
29
     */
30
    private $in;
31
32
    /**
33
     * @Serializer\Type("integer")
34
     *
35
     * @var int
36
     */
37
    private $from_id;
38
39
    /**
40
     * @Serializer\Type("integer")
41
     *
42
     * @var int
43
     */
44
    private $to_id;
45
46
    /**
47
     * @Serializer\Type("string")
48
     *
49
     * @var string
50
     */
51
    private $message;
52
53
    public function getId(): int
54
    {
55
        return $this->id;
56
    }
57
58
    public function setId(int $id): self
59
    {
60
        $this->id = $id;
61
62
        return $this;
63
    }
64
65
    public function getOut(): int
66
    {
67
        return $this->out;
68
    }
69
70
    public function setOut(int $out): self
71
    {
72
        $this->out = $out;
73
74
        return $this;
75
    }
76
77
    public function getIn(): int
78
    {
79
        return $this->in;
80
    }
81
82
    public function setIn(int $in): self
83
    {
84
        $this->in = $in;
85
86
        return $this;
87
    }
88
89
    public function getFromId(): int
90
    {
91
        return $this->from_id;
92
    }
93
94
    public function setFromId(int $from_id): self
95
    {
96
        $this->from_id = $from_id;
97
98
        return $this;
99
    }
100
101
    public function getToId(): int
102
    {
103
        return $this->to_id;
104
    }
105
106
    public function setToId(int $to_id): self
107
    {
108
        $this->to_id = $to_id;
109
110
        return $this;
111
    }
112
113
    public function getMessage(): string
114
    {
115
        return $this->message;
116
    }
117
118
    public function setMessage(string $message): self
119
    {
120
        $this->message = $message;
121
122
        return $this;
123
    }
124
}
125