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

PaymentIntentData   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 10
ccs 1
cts 1
cp 1
rs 10
c 1
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
use Stripe\PaymentIntent;
10
11
final class PaymentIntentData
12
{
13 5
    public function __construct(
14
        public readonly ?string $intentId = null,
15
        public readonly ?PaymentIntent $paymentIntent = null,
16
        public readonly ?StripePaymentAmount $paymentAmount = null,
17
        public readonly ?Model $model = null,
18
        public readonly array $params = [],
19
        public readonly array $options = [],
20
    ) {
21 5
    }
22
}
23