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

PeriodicTimer::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Spike library
4
 * @author Tao <[email protected]>
5
 */
6
namespace Spike\Client\Timer;
7
8
use Spike\Client\Client;
9
use Spike\Timer\PeriodicTimer as BasePeriodicTimer;
10
11
abstract class PeriodicTimer extends BasePeriodicTimer
12
{
13
    /**
14
     * @var Client
15
     */
16
    protected $client;
17
18
    public function __construct(Client $client)
19
    {
20
        $this->client = $client;
21
    }
22
23
    /**
24
     * @return Client
25
     */
26
    public function getClient()
27
    {
28
        return $this->client;
29
    }
30
}