Timer   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 getClient() 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\Client\Timer;
13
14
use Spike\Client\Client;
15
use Spike\Common\Timer\TimerInterface;
16
17
/**
18
 * @codeCoverageIgnore
19
 */
20
abstract class Timer implements TimerInterface
21
{
22
    /**
23
     * @var Client
24
     */
25
    protected $client;
26
27
    public function __construct(Client $client)
28
    {
29
        $this->client = $client;
30
    }
31
32
    /**
33
     * @return Client
34
     */
35
    public function getClient()
36
    {
37
        return $this->client;
38
    }
39
}