InlineQueryResultCachedAudio   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities\InlineQuery;
4
5
use TelegramBot\Entities\InlineKeyboard;
6
use TelegramBot\Entities\InputMessageContent\InputMessageContent;
7
use TelegramBot\Entities\MessageEntity;
8
9
/**
10
 * Class InlineQueryResultCachedAudio
11
 *
12
 * @link https://core.telegram.org/bots/api#inlinequeryresultcachedaudio
13
 *
14
 * <code>
15
 * $data = [
16
 *   'id'                    => '',
17
 *   'audio_file_id'         => '',
18
 *   'caption'               => '',
19
 *   'reply_markup'          => <InlineKeyboard>,
20
 *   'input_message_content' => <InputMessageContent>,
21
 * ];
22
 * </code>
23
 *
24
 * @method string               getType()                Type of the result, must be audio
25
 * @method string               getId()                  Unique identifier for this result, 1-64 bytes
26
 * @method string               getAudioFileId()         A valid file identifier for the audio file
27
 * @method string               getCaption()             Optional. Caption, 0-200 characters
28
 * @method string               getParseMode()           Optional. Mode for parsing entities in the audio caption
29
 * @method MessageEntity[]      getCaptionEntities()     Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
30
 * @method InlineKeyboard       getReplyMarkup()         Optional. An Inline keyboard attached to the message
31
 * @method InputMessageContent  getInputMessageContent() Optional. Content of the message to be sent instead of the audio
32
 *
33
 * @method $this setId(string $id)                                                  Unique identifier for this result, 1-64 bytes
34
 * @method $this setAudioFileId(string $audio_file_id)                              A valid file identifier for the audio file
35
 * @method $this setCaption(string $caption)                                        Optional. Caption, 0-200 characters
36
 * @method $this setParseMode(string $parse_mode)                                   Optional. Mode for parsing entities in the audio caption
37
 * @method $this setCaptionEntities(array $caption_entities)                        Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
38
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                       Optional. An Inline keyboard attached to the message
39
 * @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the audio
40
 */
41
class InlineQueryResultCachedAudio extends InlineEntity implements InlineQueryResult
42
{
43
44
    /**
45
     * InlineQueryResultCachedAudio constructor
46
     *
47
     * @param array $data
48
     */
49
    public function __construct(array $data = [])
50
    {
51
        $data['type'] = 'audio';
52
        parent::__construct($data);
53
    }
54
55
}
56