Passed
Pull Request — master (#437)
by
unknown
02:08
created

InputMediaDocument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace TelegramBot\Api\Types\InputMedia;
4
5
use TelegramBot\Api\Types\File;
6
7
/**
8
 * Class InputMediaDocument
9
 * Represents a photo to be sent.
10
 *
11
 * @package TelegramBot\Api
12
 */
13
class InputMediaDocument extends InputMedia
14
{
15
    /**
16
     * InputMediaPhoto constructor.
17
     *
18
     * @param string $media
19
     * @param string|null $caption
20
     * @param string|null $parseMode
21
     * @param File|null $thumb
22
     */
23
    public function __construct($media, $caption = null, $parseMode = null, File $thumb = null)
24
    {
25
        $this->type = 'document';
26
        $this->media = $media;
27
        $this->caption = $caption;
28
        $this->parseMode = $parseMode;
29
        $this->trumb = $thumb;
0 ignored issues
show
Bug Best Practice introduced by
The property trumb does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
30
    }
31
}
32