Completed
Push — master ( d83768...66ea7e )
by Fabian
02:05
created

ServerTimeResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Test Coverage

Coverage 55.56%

Importance

Changes 0
Metric Value
dl 0
loc 47
ccs 5
cts 9
cp 0.5556
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setUnixTime() 0 3 1
A getUnixTime() 0 3 1
A getRfc1123() 0 3 1
A setRfc1123() 0 3 1
1
<?php
2
3
namespace HanischIt\KrakenApi\Model\ServerTime;
4
5
use HanischIt\KrakenApi\Model\ResponseInterface;
6
7
/**
8
 * Class ServerTimeResponse
9
 *
10
 * @package HanischIt\KrakenApi\Model\ServerTime
11
 */
12
class ServerTimeResponse implements ResponseInterface
13
{
14
15
    /**
16
     * as unix timestamp
17
     *
18
     * @var string
19
     */
20
    private $unixTime;
21
22
    /**
23
     * as RFC 1123 time format
24
     *
25
     * @var string
26
     */
27
    private $rfc1123;
28
29
    /**
30
     * @return string
31
     */
32
    public function getUnixTime()
33
    {
34
        return $this->unixTime;
35
    }
36
37
    /**
38
     * @param string $unixTime
39
     */
40 2
    public function setUnixTime($unixTime)
41
    {
42 2
        $this->unixTime = $unixTime;
43 2
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getRfc1123()
49
    {
50
        return $this->rfc1123;
51
    }
52
53
    /**
54
     * @param string $rfc1123
55
     */
56 2
    public function setRfc1123($rfc1123)
57
    {
58 2
        $this->rfc1123 = $rfc1123;
59 2
    }
60
}
61