Completed
Push — master ( 390e4e...b0ec12 )
by Taosikai
12:57
created

PingHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 5 1
1
<?php
2
/**
3
 * Spike library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Spike\Server\Handler;
7
8
use Spike\Protocol\SpikeInterface;
9
10
class PingHandler extends RequireAuthHandler
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function handle(SpikeInterface $message)
16
    {
17
        parent::handle($message);
18
        $this->client->setLastActiveAt(microtime(true));
19
    }
20
}