Passed
Pull Request — master (#99)
by
unknown
02:46
created

FractionQuantityData   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace hiqdev\php\billing\product\quantity;
4
5
use hiqdev\php\units\Quantity;
6
7
final class FractionQuantityData
8
{
9
    public function __construct(
10
        public readonly Quantity $quantity,
11
        public readonly string $time,
12
        public readonly ?float $fractionOfMonth
13
    ) {}
14
}
15