Completed
Push — master ( a1f3e5...eb9bcc )
by Irfaq
02:42
created

InlineQueryResultDocument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultDocument
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                       => '',
11
 *   'title'                    => '',
12
 *   'caption'                  => '',
13
 *   'document_url'             => '',
14
 *   'mime_type'                => '',
15
 *   'description'              => '',
16
 *   'reply_markup'             => '',
17
 *   'input_message_content'    => '',
18
 *   'thumb_url'                => '',
19
 *   'thumb_width'              => '',
20
 *   'thumb_height'             => '',
21
 * ];
22
 * </code>
23
 *
24
 * @link https://core.telegram.org/bots/api#inlinequeryresultdocument
25
 *
26
 * @method $this setId($string)                     Unique identifier for this result, 1-64 bytes
27
 * @method $this setTitle($string)                  Title for the result
28
 * @method $this setCaption($string)                Optional. Caption of the document to be sent, 0-200 characters
29
 * @method $this setDocumentUrl($string)            A valid URL for the file
30
 * @method $this setMimeType($string)               Mime type of the content of the file, either “application/pdf” or “application/zip”
31
 * @method $this setDescription($string)            Optional. Short description of the result
32
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
33
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the file
34
 * @method $this setThumbUrl($string)               Optional. URL of the thumbnail (jpeg only) for the file
35
 * @method $this setThumbWidth($int)                Optional. Thumbnail width
36
 * @method $this setThumbHeight($int)               Optional. Thumbnail height */
37
class InlineQueryResultDocument extends InlineBaseObject
38
{
39
    public function __construct($params = [])
40
    {
41
        parent::__construct($params);
42
        $this->put('type', 'document');
43
    }
44
}
45