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

GeoLocation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 3
dl 0
loc 10
ccs 0
cts 1
cp 0
crap 2
rs 10
c 0
b 0
f 0
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