Completed
Push — master ( 533e78...e97401 )
by Janusz
02:11
created

AccountBalance   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 24
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getBalance() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ittoolspl\Smslabs\VO;
5
6
class AccountBalance
7
{
8
    /**
9
     * @var float
10
     */
11
    private $balance;
12
13
    /**
14
     * AccountBalance constructor.
15
     * @param float $balance
16
     */
17
    public function __construct(float $balance)
18
    {
19
        $this->balance = $balance;
20
    }
21
22
    /**
23
     * @return float
24
     */
25
    public function getBalance() : float
26
    {
27
        return $this->balance;
28
    }
29
}
30