Detour   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Swis\Melvin\Models;
6
7
use GeoJson\Geometry\Geometry;
8
use Swis\Melvin\Enums\Direction;
9
use Swis\Melvin\Enums\TransportMode;
10
11
class Detour
12
{
13 6
    public function __construct(
14
        public string $id,
15
        public bool $external,
16
        public Geometry $geometry,
17
        public string $name,
18
        public Direction $direction,
19
        public ?TransportMode $transportMode,
20
        /**
21
         * @var \Swis\Melvin\Enums\VehicleType[]
22
         */
23
        public array $vehicleTypes,
24
        /**
25
         * @var \Swis\Melvin\Enums\BoatType[]
26
         */
27
        public array $boatTypes
28
    ) {
29 6
    }
30
}
31