GeoLocation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 12
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
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 GeoLocation
10
{
11
    public function __construct(
12
        #[Serializer\Type('float')]
13
        public ?float $latitude = null,
14
15
        #[Serializer\Type('float')]
16
        public ?float $longitude = null,
17
18
        #[Serializer\Type('int')]
19
        public ?int $confidence = null,
20
    ) {
21
    }
22
}
23