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

ServerTimeAbstractRequest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 35
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getVisibility() 0 3 1
A getResponseClassName() 0 3 1
A getRequestData() 0 3 1
A getMethod() 0 3 1
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