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

SystemCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 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;
12
13
use Longman\TelegramBot\Http\Client;
14
15
abstract class SystemCommand extends Command
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\Http\ServerResponse
24
     */
25 1
    public function execute()
26
    {
27
        //System command, return empty ServerResponse by default
28 1
        return Client::emptyResponse();
29
    }
30
}
31