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

InvoicePayment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LauLamanApps\IzettleApi\API\Purchase\Payment;
6
7
use LauLamanApps\IzettleApi\API\Purchase\AbstractPayment;
8
use Money\Money;
9
use Ramsey\Uuid\UuidInterface;
10
11
final class InvoicePayment extends AbstractPayment
12
{
13
    /**
14
     * On the time of development there was no information available about
15
     * the data that is returned for this payment Type. The documentation
16
     * only mention the types. Thats why i created the payment types as
17
     * Class but was unable to implement it.
18
     *
19
     * Feel free to open a PR to complete this
20
     */
21 1
    public function __construct(
22
        UuidInterface $uuid,
23
        Money $amount
24
    ) {
25 1
        parent::__construct($uuid, $amount);
26
27 1
        throw new \Exception('Payment type not implemented');
28
    }
29
}
30