ChunkServerTimer   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getChunkServer() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the slince/spike package.
5
 *
6
 * (c) Slince <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Spike\Server\ChunkServer\Timer;
13
14
use Spike\Common\Timer\TimerInterface;
15
use Spike\Server\ChunkServer\ChunkServerInterface;
16
17
abstract class ChunkServerTimer implements TimerInterface
18
{
19
    /**
20
     * @var ChunkServerInterface
21
     */
22
    protected $chunkServer;
23
24
    public function __construct(ChunkServerInterface $tunnelServer)
25
    {
26
        $this->chunkServer = $tunnelServer;
27
    }
28
29
    /**
30
     * @return ChunkServerInterface
31
     */
32
    public function getChunkServer()
33
    {
34
        return $this->chunkServer;
35
    }
36
}