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

ServerTimeResponse::getRfc1123()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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