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

PaymentIntentData::__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
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