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

StartCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
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 37
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 8 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
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