Completed
Push — master ( 3ad417...37b5d9 )
by Fabian
02:10
created

ServerTimeAbstractRequest::getMethod()   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\Model\ServerTime;
4
5
use HanischIt\KrakenApi\Enum\VisibilityEnum;
6
use HanischIt\KrakenApi\Model\AbstractRequest;
7
use HanischIt\KrakenApi\Model\RequestInterface;
0 ignored issues
show
Bug introduced by
The type HanischIt\KrakenApi\Model\RequestInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
/**
10
 * Class ServerTimeAbstractRequest
11
 *
12
 * @package HanischIt\KrakenApi\Model\ServerTime
13
 */
14
class ServerTimeAbstractRequest extends AbstractRequest
15
{
16
17
    /**
18
     * Returns the api request name
19
     *
20
     * @return string
21
     */
22 1
    public function getMethod()
23
    {
24 1
        return 'Time';
25
    }
26
27
    /**
28
     * @return string
29
     */
30 1
    public function getVisibility()
31
    {
32 1
        return VisibilityEnum::VISIBILITY_PUBLIC;
33
    }
34
35
    /**
36
     * @return array
37
     */
38 1
    public function getRequestData()
39
    {
40 1
        return [];
41
    }
42
43
    /**
44
     * @return string
45
     */
46 1
    public function getResponseClassName()
47
    {
48 1
        return ServerTimeResponse::class;
49
    }
50
}
51