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

OffsessionChargeData   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MichaelRubel\StripeIntegration\DataTransferObjects;
6
7
use Illuminate\Database\Eloquent\Model;
8
use MichaelRubel\StripeIntegration\Decorators\StripePaymentAmount;
9
10
final class OffsessionChargeData
11
{
12 1
    public function __construct(
13
        public readonly Model $model,
14
        public readonly StripePaymentAmount $payment_amount,
15
        public readonly array $intent_params = [],
16
        public readonly array $intent_options = [],
17
        public readonly array $confirmation_params = [],
18
        public readonly array $confirmation_options = [],
19
    ) {
20 1
    }
21
}
22