Passed
Push — master ( 37b5d9...f0b58d )
by Fabian
02:07
created

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