Completed
Push — master ( bd4ff0...d83768 )
by Fabian
03:55
created

ServerTimeResponse::setRfc1123()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
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
    public function setUnixTime($unixTime)
41
    {
42
        $this->unixTime = $unixTime;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getRfc1123()
49
    {
50
        return $this->rfc1123;
51
    }
52
53
    /**
54
     * @param string $rfc1123
55
     */
56
    public function setRfc1123($rfc1123)
57
    {
58
        $this->rfc1123 = $rfc1123;
59
    }
60
}
61