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

PeriodicTimer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTunnelServer() 0 4 1
1
<?php
2
/**
3
 * Spike library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Spike\Server\TunnelServer\Timer;
7
8
use Spike\Server\TunnelServer\TunnelServerInterface;
9
use Spike\Timer\PeriodicTimer as BasePeriodicTimer;
10
11
abstract class PeriodicTimer extends BasePeriodicTimer
12
{
13
    protected $tunnelServer;
14
15
    public function __construct(TunnelServerInterface $tunnelServer)
16
    {
17
        $this->tunnelServer = $tunnelServer;
18
    }
19
20
    /**
21
     * @return TunnelServerInterface
22
     */
23
    public function getTunnelServer()
24
    {
25
        return $this->tunnelServer;
26
    }
27
}