Document::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TelegramBot\Entities;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class Document
9
 *
10
 * @link https://core.telegram.org/bots/api#document
11
 *
12
 * @method string    getFileId()        Identifier for this file, which can be used to download or reuse the file
13
 * @method string    getFileUniqueId()  Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
14
 * @method PhotoSize getThumb()         Optional. Document thumbnail as defined by sender
15
 * @method string    getFileName()      Optional. Original filename as defined by sender
16
 * @method string    getMimeType()      Optional. MIME type of the file as defined by sender
17
 * @method int       getFileSize()      Optional. File size
18
 */
19
class Document extends Entity
20
{
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function subEntities(): array
26
    {
27
        return [
28
            'thumb' => PhotoSize::class,
29
        ];
30
    }
31
32
}
33