Completed
Push — master ( afa872...533e78 )
by Janusz
02:24
created

AccountBalance::__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
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ittoolspl\Smslabs\Entity;
5
6
class AccountBalance
7
{
8
    /**
9
     * @var float
10
     */
11
    private $balance;
12
13
    /**
14
     * AccountBalance constructor.
15
     * @param float $balance
16
     */
17 2
    public function __construct(float $balance)
18
    {
19 2
        $this->balance = $balance;
20 2
    }
21
22
    /**
23
     * @return float
24
     */
25 2
    public function getBalance() : float
26
    {
27 2
        return $this->balance;
28
    }
29
}
30