Passed
Push — master ( 80a2af...b754d5 )
by Fabian
51s
created

AccountBalanceModel::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * @author fabian.hanisch
4
 * @since  2017-07-18
5
 */
6
7
namespace HanischIt\KrakenApi\Call\AccountBalance\Model;
8
9
/**
10
 * Class AccountBalanceModel
11
 * @package HanischIt\KrakenApi\Call\AccountBalance\Model
12
 */
13
class AccountBalanceModel
14
{
15
    /**
16
     * @var string
17
     */
18
    private $assetName;
19
    /**
20
     * @var float
21
     */
22
    private $balance;
23
24
    /**
25
     * AccountBalanceModel constructor.
26
     *
27
     * @param string $assetName
28
     * @param float $balance
29
     */
30 2
    public function __construct($assetName, $balance)
31
    {
32 2
        $this->assetName = $assetName;
33 2
        $this->balance = $balance;
34 2
    }
35
36
    /**
37
     * @return string
38
     */
39 2
    public function getAssetName()
40
    {
41 2
        return $this->assetName;
42
    }
43
44
    /**
45
     * @return float
46
     */
47 2
    public function getBalance()
48
    {
49 2
        return $this->balance;
50
    }
51
}
52