Balance   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 35
rs 10
c 1
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setBalance() 0 3 1
A getBalance() 0 3 1
A getCurrencyCode() 0 3 1
A setCurrencyCode() 0 3 1
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