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

ServerTimeResponse::setRfc1123()   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 1
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\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