PaymentMethodAttachmentData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 8
ccs 1
cts 1
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
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 readonly PaymentMethod|CashierPaymentMethod $paymentMethod,
15
        public readonly Customer $customer,
16
        public readonly array $params = [],
17
        public readonly array $options = [],
18
    ) {
19 3
    }
20
}
21