InlineQueryResultContact::getLastName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\InlineQueryResult;
6
7
use Zanzara\Telegram\Type\Input\InputMessageContent;
8
use Zanzara\Telegram\Type\Keyboard\InlineKeyboardMarkup;
9
10
/**
11
 * Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can
12
 * use input_message_content to send a message with the specified content instead of the contact.
13
 *
14
 * More on https://core.telegram.org/bots/api#inlinequeryresultcontact
15
 */
16
class InlineQueryResultContact extends InlineQueryResult
17
{
18
19
    /**
20
     * Contact's phone number
21
     *
22
     * @var string
23
     */
24
    private $phone_number;
25
26
    /**
27
     * Contact's first name
28
     *
29
     * @var string
30
     */
31
    private $first_name;
32
33
    /**
34
     * Optional. Contact's last name
35
     *
36
     * @var string|null
37
     */
38
    private $last_name;
39
40
    /**
41
     * Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes
42
     *
43
     * @var string|null
44
     */
45
    private $vcard;
46
47
    /**
48
     * Optional. Inline keyboard attached to the message
49
     *
50
     * @var InlineKeyboardMarkup|null
51
     */
52
    private $reply_markup;
53
54
    /**
55
     * Optional. Content of the message to be sent instead of the contact
56
     *
57
     * @var InputMessageContent|null
58
     */
59
    private $input_message_content;
60
61
    /**
62
     * Optional. Url of the thumbnail for the result
63
     *
64
     * @var string|null
65
     */
66
    private $thumb_url;
67
68
    /**
69
     * Optional. Thumbnail width
70
     *
71
     * @var int|null
72
     */
73
    private $thumb_width;
74
75
    /**
76
     * Optional. Thumbnail height
77
     *
78
     * @var int|null
79
     */
80
    private $thumb_height;
81
82
    /**
83
     * @return string
84
     */
85
    public function getPhoneNumber(): string
86
    {
87
        return $this->phone_number;
88
    }
89
90
    /**
91
     * @param string $phone_number
92
     */
93
    public function setPhoneNumber(string $phone_number): void
94
    {
95
        $this->phone_number = $phone_number;
96
    }
97
98
    /**
99
     * @return string
100
     */
101
    public function getFirstName(): string
102
    {
103
        return $this->first_name;
104
    }
105
106
    /**
107
     * @param string $first_name
108
     */
109
    public function setFirstName(string $first_name): void
110
    {
111
        $this->first_name = $first_name;
112
    }
113
114
    /**
115
     * @return string|null
116
     */
117
    public function getLastName(): ?string
118
    {
119
        return $this->last_name;
120
    }
121
122
    /**
123
     * @param string|null $last_name
124
     */
125
    public function setLastName(?string $last_name): void
126
    {
127
        $this->last_name = $last_name;
128
    }
129
130
    /**
131
     * @return string|null
132
     */
133
    public function getVcard(): ?string
134
    {
135
        return $this->vcard;
136
    }
137
138
    /**
139
     * @param string|null $vcard
140
     */
141
    public function setVcard(?string $vcard): void
142
    {
143
        $this->vcard = $vcard;
144
    }
145
146
    /**
147
     * @return InlineKeyboardMarkup|null
148
     */
149
    public function getReplyMarkup(): ?InlineKeyboardMarkup
150
    {
151
        return $this->reply_markup;
152
    }
153
154
    /**
155
     * @param InlineKeyboardMarkup|null $reply_markup
156
     */
157
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
158
    {
159
        $this->reply_markup = $reply_markup;
160
    }
161
162
    /**
163
     * @return InputMessageContent|null
164
     */
165
    public function getInputMessageContent(): ?InputMessageContent
166
    {
167
        return $this->input_message_content;
168
    }
169
170
    /**
171
     * @param InputMessageContent|null $input_message_content
172
     */
173
    public function setInputMessageContent(?InputMessageContent $input_message_content): void
174
    {
175
        $this->input_message_content = $input_message_content;
176
    }
177
178
    /**
179
     * @return string|null
180
     */
181
    public function getThumbUrl(): ?string
182
    {
183
        return $this->thumb_url;
184
    }
185
186
    /**
187
     * @param string|null $thumb_url
188
     */
189
    public function setThumbUrl(?string $thumb_url): void
190
    {
191
        $this->thumb_url = $thumb_url;
192
    }
193
194
    /**
195
     * @return int|null
196
     */
197
    public function getThumbWidth(): ?int
198
    {
199
        return $this->thumb_width;
200
    }
201
202
    /**
203
     * @param int|null $thumb_width
204
     */
205
    public function setThumbWidth(?int $thumb_width): void
206
    {
207
        $this->thumb_width = $thumb_width;
208
    }
209
210
    /**
211
     * @return int|null
212
     */
213
    public function getThumbHeight(): ?int
214
    {
215
        return $this->thumb_height;
216
    }
217
218
    /**
219
     * @param int|null $thumb_height
220
     */
221
    public function setThumbHeight(?int $thumb_height): void
222
    {
223
        $this->thumb_height = $thumb_height;
224
    }
225
226
}