Completed
Pull Request — master (#815)
by Jazin
03:05
created

PreprocessCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
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;
12
13
use Longman\TelegramBot\Request;
14
15
abstract class PreprocessCommand extends SystemCommand
16
{
17
    /**
18
     * A system command just executes
19
     *
20
     * Although system commands should just work and return a successful ServerResponse,
21
     * each system command can override this method to add custom functionality.
22
     *
23
     * @return \Longman\TelegramBot\Entities\ServerResponse
24
     */
25
    public function execute()
26
    {
27
        //System command, return empty ServerResponse by default
28
        return Request::emptyResponse();
29
    }
30
}
31