Product   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sunrise\Hydrator\Tests\Fixture\Store;
6
7
use DateTimeImmutable;
8
use Sunrise\Hydrator\Annotation\Format;
9
use Sunrise\Hydrator\Annotation\Relationship;
10
11
final class Product
12
{
13
    public function __construct(
14
        public readonly string $name,
15
        public readonly Category $category,
16
        #[Relationship(Tag::class)]
17
        public readonly array $tags,
18
        public readonly Status $status,
19
        #[Format('Y-m-d H:i:s')]
20
        public readonly DateTimeImmutable $createdAt = new DateTimeImmutable('2020-01-01 12:00:00'),
21
    ) {
22
    }
23
}
24