Completed
Push — master ( 21bf70...cc5276 )
by Kamil
05:50
created

PingCommand   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getID() 0 4 1
A buildPacket() 0 2 1
A getSql() 0 4 1
1
<?php
2
3
namespace Dazzle\MySQL\Command\Concrete;
4
5
use Dazzle\MySQL\Command\Command;
6
7
class PingCommand extends Command
8
{
9
    /**
10
     * @override
11
     * @inheritDoc
12
     */
13
    public function getID()
14
    {
15
        return self::PING;
16
    }
17
18
    /**
19
     * @override
20
     * @inheritDoc
21
     */
22
    public function buildPacket()
23
    {}
24
25
    /**
26
     * @override
27
     * @inheritDoc
28
     */
29
    public function getSql()
30
    {
31
        return '';
32
    }
33
}
34