Completed
Push — master ( 1df482...f40dd5 )
by Andrii
03:13
created

PingHandler::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 0
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 2
1
<?php
2
3
namespace hiapi\commands;
4
5
class PingHandler
6
{
7
    public $pong;
8
    public $command;
9
10
    public function handle(PingCommand $command)
11
    {
12
        $this->command = $command;
13
        $this->pong = $command->getAnswer();
14
15
        return $this;
16
    }
17
}
18