Balance::getCurrencyCode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AllDigitalRewards\WeGift\Entity;
4
5
class Balance extends AbstractEntity
6
{
7
    protected float $balance;
8
    protected string $currency_code;
9
10
    /**
11
     * @return float
12
     */
13
    public function getBalance(): float
14
    {
15
        return $this->balance;
16
    }
17
18
    /**
19
     * @param float $balance
20
     */
21
    public function setBalance(float $balance): void
22
    {
23
        $this->balance = $balance;
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getCurrencyCode(): string
30
    {
31
        return $this->currency_code;
32
    }
33
34
    /**
35
     * @param string $currency_code
36
     */
37
    public function setCurrencyCode(string $currency_code): void
38
    {
39
        $this->currency_code = $currency_code;
40
    }
41
}
42