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

OffsessionChargeData::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
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 6
dl 0
loc 8
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 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