Completed
Push — master ( 9c30d6...210d9b )
by Laurens
01:56
created

PayoutInfo::getPeriodicity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\API\Finance;
6
7
use LauLamanApps\IzettleApi\API\Finance\Enum\Periodicity;
8
use Money\Money;
9
10
final class PayoutInfo
11
{
12
    private $totalBalance;
13
    private $nextPayoutAmount;
14
    private $discountRemaining;
15
    private $periodicity;
16
17 3
    public function __construct(Money $totalBalance, Money $nextPayoutAmount, Money $discountRemaining, Periodicity $periodicity)
18
    {
19 3
        $this->totalBalance = $totalBalance;
20 3
        $this->nextPayoutAmount = $nextPayoutAmount;
21 3
        $this->discountRemaining = $discountRemaining;
22 3
        $this->periodicity = $periodicity;
23 3
    }
24
25 2
    public function getTotalBalance(): Money
26
    {
27 2
        return $this->totalBalance;
28
    }
29
30 2
    public function getNextPayoutAmount(): Money
31
    {
32 2
        return $this->nextPayoutAmount;
33
    }
34
35 2
    public function getDiscountRemaining(): Money
36
    {
37 2
        return $this->discountRemaining;
38
    }
39
40 2
    public function getPeriodicity(): Periodicity
41
    {
42 2
        return $this->periodicity;
43
    }
44
}
45