Passed
Push — master ( 7f7158...8d1ed5 )
by Armando
02:55
created

StartCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 35
ccs 0
cts 3
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
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Commands\UserCommands;
12
13
use Longman\TelegramBot\Commands\UserCommand;
14
use Longman\TelegramBot\Entities\ServerResponse;
15
use Longman\TelegramBot\Exception\TelegramException;
16
17
/**
18
 * Start command
19
 */
20
class StartCommand extends UserCommand
21
{
22
    /**
23
     * @var string
24
     */
25
    protected $name = 'start';
26
27
    /**
28
     * @var string
29
     */
30
    protected $description = 'Start command';
31
32
    /**
33
     * @var string
34
     */
35
    protected $usage = '/start';
36
37
    /**
38
     * @var string
39
     */
40
    protected $version = '1.1.0';
41
42
    /**
43
     * Command execute method
44
     *
45
     * @return ServerResponse
46
     * @throws TelegramException
47
     */
48
    public function execute()
49
    {
50
        //$message = $this->getMessage();
51
        //$chat_id = $message->getChat()->getId();
52
        //$user_id = $message->getFrom()->getId();
53
54
        return parent::execute();
55
    }
56
}
57