Completed
Push — feature/refactor-app-design ( d959a3 )
by Avtandil
03:51
created

GenericCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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\SystemCommands;
12
13
use Longman\TelegramBot\Commands\SystemCommand;
14
15
/**
16
 * Generic command
17
 */
18
class GenericCommand extends SystemCommand
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $name = 'generic';
24
25
    /**
26
     * @var string
27
     */
28
    protected $description = 'Handles generic commands or is executed by default when a command is not found';
29
30
    /**
31
     * @var string
32
     */
33
    protected $version = '1.0.0';
34
35
    /**
36
     * Command execute method
37
     *
38
     * @return mixed
39
     * @throws \Longman\TelegramBot\Exception\TelegramException
40
     */
41 1
    public function execute()
42
    {
43
        //$message = $this->getMessage();
44
        //$chat_id = $message->getChat()->getId();
45
        //$user_id = $message->getFrom()->getId();
46
        //$command = $message->getCommand();
47
        //$text = trim($message->getText(true));
48
49 1
        return parent::execute();
50
    }
51
}
52