InlinequeryCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 29
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 7 1
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\Commands\SystemCommands;
13
14
use Longman\TelegramBot\Commands\SystemCommand;
15
use Longman\TelegramBot\Entities\ServerResponse;
16
17
/**
18
 * Inline query command
19
 */
20
class InlinequeryCommand extends SystemCommand
21
{
22
    /**
23
     * @var string
24
     */
25
    protected $name = 'inlinequery';
26
27
    /**
28
     * @var string
29
     */
30
    protected $description = 'Reply to inline query';
31
32
    /**
33
     * @var string
34
     */
35
    protected $version = '1.0.1';
36
37
    /**
38
     * Command execute method
39
     *
40
     * @return mixed
41
     */
42
    public function execute(): ServerResponse
43
    {
44
        //$inline_query = $this->getInlineQuery();
45
        //$user_id      = $inline_query->getFrom()->getId();
46
        //$query        = $inline_query->getQuery();
47
48
        return $this->getInlineQuery()->answer([]);
49
    }
50
}
51