Completed
Push — master ( 39a0bd...0a53a0 )
by Fabian
02:26
created

FeeModel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getVolume() 0 3 1
A getPercentFee() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Fabian
5
 * Date: 24.07.2017
6
 * Time: 15:35
7
 */
8
9
namespace HanischIt\KrakenApi\Call\TradableAssetPairs\Model;
10
11
/**
12
 * Class FeeModel
13
 * @package HanischIt\KrakenApi\Call\TradableAssetPairs\Model
14
 */
15
class FeeModel
16
{
17
    /**
18
     * @var float
19
     */
20
    private $volume;
21
    /**
22
     * @var float
23
     */
24
    private $percentFee;
25
26
    /**
27
     * FeeModel constructor.
28
     * @param float $volume
29
     * @param float $percentFee
30
     */
31 1
    public function __construct($volume, $percentFee)
32
    {
33 1
        $this->volume = $volume;
34 1
        $this->percentFee = $percentFee;
35 1
    }
36
37
    /**
38
     * @return float
39
     */
40 1
    public function getVolume()
41
    {
42 1
        return $this->volume;
43
    }
44
45
    /**
46
     * @return float
47
     */
48 1
    public function getPercentFee()
49
    {
50 1
        return $this->percentFee;
51
    }
52
}
53