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

PingHandler::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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
}