InlineQueryResultCachedAudio::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultCachedAudio
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                         => '',
11
 *   'audio_file_id'              => '',
12
 *   'reply_markup'               => '',
13
 *   'input_message_content'      => '',
14
 * ];
15
 * </code>
16
 *
17
 * @link https://core.telegram.org/bots/api#inlinequeryresultcachedaudio
18
 *
19
 * @method $this setId($string)                     Unique identifier for this result, 1-64 bytes
20
 * @method $this setAudioFileId($string)            A valid file identifier for the audio file
21
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
22
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the photo
23
 */
24
class InlineQueryResultCachedAudio extends InlineBaseObject
25
{
26
    public function __construct($params = [])
27
    {
28
        parent::__construct($params);
29
        $this->put('type', 'audio');
30
    }
31
}
32