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

InvoicePayment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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