Passed
Push — master ( 9ff768...b736eb )
by Laurens
02:33
created

AbstractPayment   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 21
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getUuid() 0 4 1
A getAmount() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\API\Purchase;
6
7
use Money\Money;
8
use Ramsey\Uuid\UuidInterface;
9
10
abstract class AbstractPayment
11
{
12
    private $uuid;
13
    private $amount;
14
15 11
    public function __construct(UuidInterface $uuid, Money $amount)
16
    {
17 11
        $this->uuid = $uuid;
18 11
        $this->amount = $amount;
19 11
    }
20
21 2
    public function getUuid(): UuidInterface
22
    {
23 2
        return $this->uuid;
24
    }
25
26 6
    public function getAmount(): Money
27
    {
28 6
        return $this->amount;
29
    }
30
}
31