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

StripeChargeData   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 8
ccs 1
cts 1
cp 1
rs 10
c 3
b 0
f 0
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 Illuminate\Database\Eloquent\Model;
8
use Laravel\Cashier\PaymentMethod as CashierPaymentMethod;
9
use MichaelRubel\StripeIntegration\Decorators\Contracts\PaymentAmount;
10
use Stripe\PaymentMethod;
11
12
final class StripeChargeData
13
{
14 3
    public function __construct(
15
        public readonly Model $model,
16
        public readonly PaymentAmount $payment_amount,
17
        public readonly CashierPaymentMethod|PaymentMethod $payment_method,
18
        public readonly array $options = [],
19
    ) {
20 3
    }
21
}
22