Passed
Branch main (a4f65d)
by Michael
17:41 queued 03:14
created

PaymentMethodAttachmentData::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 4
dl 0
loc 6
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MichaelRubel\StripeIntegration\DataTransferObjects;
6
7
use Laravel\Cashier\PaymentMethod as CashierPaymentMethod;
8
use Stripe\Customer;
9
use Stripe\PaymentMethod;
10
11
final class PaymentMethodAttachmentData
12
{
13 3
    public function __construct(
14
        public PaymentMethod|CashierPaymentMethod $paymentMethod,
15
        public Customer $customer,
16
        public array $params = [],
17
        public array $options = [],
18
    ) {
19 3
    }
20
}
21