Passed
Push — main ( a8b0f9...5ab65b )
by Vasil
03:25
created

GeoLocation   A

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
namespace VasilDakov\Econt\Model;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
readonly class GeoLocation
8
{
9
    public function __construct(
10
        #[Serializer\Type('float')]
11
        public ?float $latitude = null,
12
13
        #[Serializer\Type('float')]
14
        public ?float $longitude = null,
15
16
        #[Serializer\Type('int')]
17
        public ?int $confidence = null,
18
    ) {
19
    }
20
}
21