Completed
Push — master ( 39a0bd...0a53a0 )
by Fabian
02:26
created

ServerTimeResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

4 Methods

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