Completed
Push — master ( d83768...66ea7e )
by Fabian
02:05
created

RequestOptions   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
dl 0
loc 37
ccs 4
cts 8
cp 0.5
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 3 1
A getEndpoint() 0 3 1
A __construct() 0 4 1
1
<?php
2
/**
3
 * @author  Fabian Hanisch
4
 * @since   16.07.2017 02:34
5
 * @version 1.0
6
 */
7
8
namespace HanischIt\KrakenApi\Model;
9
10
/**
11
 * Class RequestOptions
12
 *
13
 * @package HanischIt\KrakenApi\Model
14
 */
15
class RequestOptions
16
{
17
    /**
18
     * @var string
19
     */
20
    private $endpoint;
21
    /**
22
     * @var string
23
     */
24
    private $version;
25
26
    /**
27
     * RequestOptions constructor.
28
     *
29
     * @param string $endpoint
30
     * @param string $version
31
     */
32 4
    public function __construct($endpoint, $version)
33
    {
34 4
        $this->endpoint = $endpoint;
35 4
        $this->version = $version;
36 4
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getEndpoint()
42
    {
43
        return $this->endpoint;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getVersion()
50
    {
51
        return $this->version;
52
    }
53
}
54