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

PingHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 7 1
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