GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

InlineQueryResultArticle::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities\InlineQuery;
13
14
use Longman\TelegramBot\Entities\InlineKeyboard;
15
use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent;
16
17
/**
18
 * Class InlineQueryResultArticle
19
 *
20
 * @link https://core.telegram.org/bots/api#inlinequeryresultarticle
21
 *
22
 * <code>
23
 * $data = [
24
 *   'id'                    => '',
25
 *   'title'                 => '',
26
 *   'input_message_content' => <InputMessageContent>,
27
 *   'reply_markup'          => <InlineKeyboard>,
28
 *   'url'                   => '',
29
 *   'hide_url'              => true,
30
 *   'description'           => '',
31
 *   'thumb_url'             => '',
32
 *   'thumb_width'           => 30,
33
 *   'thumb_height'          => 30,
34
 * ];
35
 * </code>
36
 *
37
 * @method string               getType()                Type of the result, must be article
38
 * @method string               getId()                  Unique identifier for this result, 1-64 Bytes
39
 * @method string               getTitle()               Title of the result
40
 * @method InputMessageContent  getInputMessageContent() Content of the message to be sent
41
 * @method InlineKeyboard       getReplyMarkup()         Optional. Inline keyboard attached to the message
42
 * @method string               getUrl()                 Optional. URL of the result
43
 * @method bool                 getHideUrl()             Optional. Pass True, if you don't want the URL to be shown in the message
44
 * @method string               getDescription()         Optional. Short description of the result
45
 * @method string               getThumbUrl()            Optional. Url of the thumbnail for the result
46
 * @method int                  getThumbWidth()          Optional. Thumbnail width
47
 * @method int                  getThumbHeight()         Optional. Thumbnail height
48
 *
49
 * @method $this setId(string $id)                                                  Unique identifier for this result, 1-64 Bytes
50
 * @method $this setTitle(string $title)                                            Title of the result
51
 * @method $this setInputMessageContent(InputMessageContent $input_message_content) Content of the message to be sent
52
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                       Optional. Inline keyboard attached to the message
53
 * @method $this setUrl(string $url)                                                Optional. URL of the result
54
 * @method $this setHideUrl(bool $hide_url)                                         Optional. Pass True, if you don't want the URL to be shown in the message
55
 * @method $this setDescription(string $description)                                Optional. Short description of the result
56
 * @method $this setThumbUrl(string $thumb_url)                                     Optional. Url of the thumbnail for the result
57
 * @method $this setThumbWidth(int $thumb_width)                                    Optional. Thumbnail width
58
 * @method $this setThumbHeight(int $thumb_height)                                  Optional. Thumbnail height
59
 */
60
class InlineQueryResultArticle extends InlineEntity implements InlineQueryResult
61
{
62
    /**
63
     * InlineQueryResultArticle constructor
64
     *
65
     * @param array $data
66
     */
67
    public function __construct(array $data = [])
68
    {
69
        $data['type'] = 'article';
70
        parent::__construct($data);
71
    }
72
}
73