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

InlineQueryResultAudio::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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