Completed
Push — master ( b65c5f...d556ff )
by Michael
01:25
created

GarminEdge1030Plus   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 19
c 0
b 0
f 0
ccs 4
cts 6
cp 0.6667
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnum() 0 4 1
A getName() 0 4 1
A hasBarometer() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Runalyze Device List.
5
 *
6
 * (c) RUNALYZE <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Runalyze\Devices\Device;
13
14
class GarminEdge1030Plus extends AbstractDevice
15
{
16
    use GarminDeviceTrait;
17
18 1
    public function getEnum()
19
    {
20 1
        return DeviceProfile::GARMIN_EDGE_1030_PLUS;
21
    }
22
23 2
    public function getName()
24
    {
25 2
        return 'Edge 1030 Plus';
26
    }
27
28
    public function hasBarometer()
29
    {
30
        return true;
31
    }
32
}
33