OffsessionChargeData   A
last analyzed

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 2
    public function __construct(
13
        public readonly Model $model,
14
        public readonly StripePaymentAmount $paymentAmount,
15
        public readonly array $intentParams = [],
16
        public readonly array $intentOptions = [],
17
        public readonly array $confirmationParams = [],
18
        public readonly array $confirmationOptions = [],
19
    ) {
20 2
    }
21
}
22