InlineQueryResultVoice   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 InlineQueryResultVoice
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                         => '',
11
 *   'voice_url'                  => '',
12
 *   'title'                      => '',
13
 *   'voice_duration'             => '',
14
 *   'reply_markup'               => '',
15
 *   'input_message_content'      => '',
16
 * ];
17
 * </code>
18
 *
19
 * @link https://core.telegram.org/bots/api#inlinequeryresultvoice
20
 *
21
 * @method $this setId($string)                     Unique identifier for this result, 1-64 bytes
22
 * @method $this setVoiceUrl($string)               A valid URL for the voice recording
23
 * @method $this setTitle($string)                  Recording title
24
 * @method $this setVoiceDuration($int)             Optional. Recording duration in seconds
25
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
26
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the photo
27
 */
28
class InlineQueryResultVoice extends InlineBaseObject
29
{
30
    public function __construct($params = [])
31
    {
32
        parent::__construct($params);
33
        $this->put('type', 'voice');
34
    }
35
}
36