Country::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
nc 1
nop 6
dl 0
loc 19
ccs 1
cts 1
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Econt\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
readonly class Country
10
{
11 4
    public function __construct(
12
        #[Serializer\Type('int')]
13
        public ?int $id = null,
14
15
        #[Serializer\Type('string')]
16
        public ?string $code2 = null,
17
18
        #[Serializer\Type('string')]
19
        public ?string $code3 = null,
20
21
        #[Serializer\Type('string')]
22
        public ?string $name = null,
23
24
        #[Serializer\Type('string')]
25
        public ?string $nameEn = null,
26
27
        #[Serializer\Type('bool')]
28
        public ?bool $isEU = null
29
    ) {
30 4
    }
31
}
32