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

AbstractPayment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 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