Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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) |
|
58 | 3 | } |
|
59 | } |
||
60 |