ServerTimeRequest::getRequestData()   A
last analyzed

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\Enum\VisibilityEnum;
6
use HanischIt\KrakenApi\Model\RequestInterface;
7
8
/**
9
 * Class ServerTimeRequest
10
 * @package HanischIt\KrakenApi\Call\ServerTime
11
 */
12
class ServerTimeRequest implements RequestInterface
13
{
14
15
    /**
16
     * Returns the api request name
17
     *
18
     * @return string
19
     */
20 1
    public function getMethod()
21
    {
22 1
        return 'Time';
23
    }
24
25
    /**
26
     * @return string
27
     */
28 1
    public function getVisibility()
29
    {
30 1
        return VisibilityEnum::VISIBILITY_PUBLIC;
31
    }
32
33
    /**
34
     * @return array
35
     */
36 1
    public function getRequestData()
37
    {
38 1
        return [];
39
    }
40
41
    /**
42
     * @return string
43
     */
44 1
    public function getResponseClassName()
45
    {
46 1
        return ServerTimeResponse::class;
47
    }
48
}
49