InlineQueryResultArticle   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

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 InlineQueryResultArticle
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                       => '',
11
 *   'title'                    => '',
12
 *   'input_message_content'    => '',
13
 *   'reply_markup'             => '',
14
 *   'url'                      => '',
15
 *   'hide_url'                 => '',
16
 *   'description'              => '',
17
 *   'thumb_url'                => '',
18
 *   'thumb_width'              => '',
19
 *   'thumb_height'             => '',
20
 * ];
21
 * </code>
22
 *
23
 * @link https://core.telegram.org/bots/api#inlinequeryresultarticle
24
 *
25
 * @method $this setId($string)                  Unique identifier for this result, 1-64 Bytes
26
 * @method $this setTitle($string)               Title of the result
27
 * @method $this setInputMessageContent($object) Content of the message to be sent.
28
 * @method $this setReplyMarkup($object)         Optional. Inline keyboard attached to the message
29
 * @method $this setUrl($string)                 Optional. URL of the result
30
 * @method $this setHideUrl($bool)               Optional. Pass True, if you don't want the URL to be shown in the message
31
 * @method $this setDescription($string)         Optional. Short description of the result
32
 * @method $this setThumbUrl($string)            Optional. Url of the thumbnail for the result
33
 * @method $this setThumbWidth($int)             Optional. Thumbnail width
34
 * @method $this setThumbHeight($int)            Optional. Thumbnail height
35
 */
36
class InlineQueryResultArticle extends InlineBaseObject
37
{
38
    public function __construct($params = [])
39
    {
40
        parent::__construct($params);
41
        $this->put('type', 'article');
42
    }
43
}
44