StartCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
ccs 0
cts 2
cp 0
crap 2
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\UserCommands;
13
14
use Longman\TelegramBot\Commands\UserCommand;
15
use Longman\TelegramBot\Entities\ServerResponse;
16
use Longman\TelegramBot\Request;
17
18
/**
19
 * Start command
20
 */
21
class StartCommand extends UserCommand
22
{
23
    /**
24
     * @var string
25
     */
26
    protected $name = 'start';
27
28
    /**
29
     * @var string
30
     */
31
    protected $description = 'Start command';
32
33
    /**
34
     * @var string
35
     */
36
    protected $usage = '/start';
37
38
    /**
39
     * @var string
40
     */
41
    protected $version = '1.2.0';
42
43
    /**
44
     * Command execute method
45
     *
46
     * @return ServerResponse
47
     */
48
    public function execute(): ServerResponse
49
    {
50
        //$message = $this->getMessage() ?: $this->getEditedMessage() ?: $this->getChannelPost() ?: $this->getEditedChannelPost();
51
        //$chat_id = $message->getChat()->getId();
52
        //$user_id = $message->getFrom()->getId();
53
54
        return Request::emptyResponse();
55
    }
56
}
57