Completed
Push — 772-simple_prevent_system_comm... ( 4ac954 )
by Armando
03:31
created

StartCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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