Completed
Push — develop ( 23b8a0...80c8c3 )
by Michele
11:06
created

Video::getFileName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\File;
6
7
/**
8
 * This object represents a video file.
9
 *
10
 * More on https://core.telegram.org/bots/api#video
11
 */
12
class Video
13
{
14
15
    /**
16
     * Identifier for this file, which can be used to download or reuse the file
17
     *
18
     * @var string
19
     */
20
    private $file_id;
21
22
    /**
23
     * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to
24
     * download or reuse the file.
25
     *
26
     * @var string
27
     */
28
    private $file_unique_id;
29
30
    /**
31
     * Video width as defined by sender
32
     *
33
     * @var int
34
     */
35
    private $width;
36
37
    /**
38
     * Video height as defined by sender
39
     *
40
     * @var int
41
     */
42
    private $height;
43
44
    /**
45
     * Duration of the video in seconds as defined by sender
46
     *
47
     * @var int
48
     */
49
    private $duration;
50
51
    /**
52
     * Optional. Video thumbnail
53
     *
54
     * @var PhotoSize|null
55
     */
56
    private $thumb;
57
58
    /**
59
     * Optional. Original filename as defined by sender
60
     *
61
     * @since zanzara 0.5.0, Telegram Bot Api 5.0
62
     *
63
     * @var string|null
64
     */
65
    private $file_name;
66
67
    /**
68
     * Optional. Mime type of a file as defined by sender
69
     *
70
     * @var string|null
71
     */
72
    private $mime_type;
73
74
    /**
75
     * Optional. File size
76
     *
77
     * @var int|null
78
     */
79
    private $file_size;
80
81
    /**
82
     * @return string
83
     */
84
    public function getFileId(): string
85
    {
86
        return $this->file_id;
87
    }
88
89
    /**
90
     * @param string $file_id
91
     */
92
    public function setFileId(string $file_id): void
93
    {
94
        $this->file_id = $file_id;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getFileUniqueId(): string
101
    {
102
        return $this->file_unique_id;
103
    }
104
105
    /**
106
     * @param string $file_unique_id
107
     */
108
    public function setFileUniqueId(string $file_unique_id): void
109
    {
110
        $this->file_unique_id = $file_unique_id;
111
    }
112
113
    /**
114
     * @return int
115
     */
116
    public function getWidth(): int
117
    {
118
        return $this->width;
119
    }
120
121
    /**
122
     * @param int $width
123
     */
124
    public function setWidth(int $width): void
125
    {
126
        $this->width = $width;
127
    }
128
129
    /**
130
     * @return int
131
     */
132
    public function getHeight(): int
133
    {
134
        return $this->height;
135
    }
136
137
    /**
138
     * @param int $height
139
     */
140
    public function setHeight(int $height): void
141
    {
142
        $this->height = $height;
143
    }
144
145
    /**
146
     * @return int
147
     */
148
    public function getDuration(): int
149
    {
150
        return $this->duration;
151
    }
152
153
    /**
154
     * @param int $duration
155
     */
156
    public function setDuration(int $duration): void
157
    {
158
        $this->duration = $duration;
159
    }
160
161
    /**
162
     * @return PhotoSize|null
163
     */
164
    public function getThumb(): ?PhotoSize
165
    {
166
        return $this->thumb;
167
    }
168
169
    /**
170
     * @param PhotoSize|null $thumb
171
     */
172
    public function setThumb(?PhotoSize $thumb): void
173
    {
174
        $this->thumb = $thumb;
175
    }
176
177
    /**
178
     * @return string|null
179
     */
180
    public function getMimeType(): ?string
181
    {
182
        return $this->mime_type;
183
    }
184
185
    /**
186
     * @param string|null $mime_type
187
     */
188
    public function setMimeType(?string $mime_type): void
189
    {
190
        $this->mime_type = $mime_type;
191
    }
192
193
    /**
194
     * @return int|null
195
     */
196
    public function getFileSize(): ?int
197
    {
198
        return $this->file_size;
199
    }
200
201
    /**
202
     * @param int|null $file_size
203
     */
204
    public function setFileSize(?int $file_size): void
205
    {
206
        $this->file_size = $file_size;
207
    }
208
209
    /**
210
     * @return string|null
211
     */
212
    public function getFileName(): ?string
213
    {
214
        return $this->file_name;
215
    }
216
217
    /**
218
     * @param string|null $file_name
219
     */
220
    public function setFileName(?string $file_name): void
221
    {
222
        $this->file_name = $file_name;
223
    }
224
225
}