Fitbit   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 36
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 getDeviceEnumList() 0 23 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\Distributor;
13
14
use Runalyze\Devices\Device\DeviceProfile;
15
16
class Fitbit extends AbstractDistributor
17
{
18 1
    public function getEnum()
19
    {
20 1
        return DistributorProfile::FITBIT;
21
    }
22
23 2
    public function getName()
24
    {
25 2
        return 'Fitbit';
26
    }
27
28
    public function getDeviceEnumList()
29
    {
30
        return [
31
            DeviceProfile::FITBIT_ACE,
32
            DeviceProfile::FITBIT_ALTA,
33
            DeviceProfile::FITBIT_ALTA_H_R,
34
            DeviceProfile::FITBIT_BLAZE,
35
            DeviceProfile::FITBIT_CHARGE,
36
            DeviceProfile::FITBIT_CHARGE_2,
37
            DeviceProfile::FITBIT_CHARGE_3,
38
            DeviceProfile::FITBIT_CHARGE_H_R,
39
            DeviceProfile::FITBIT_FLEX,
40
            DeviceProfile::FITBIT_FLEX_2,
41
            DeviceProfile::FITBIT_FORCE,
42
            DeviceProfile::FITBIT_IONIC,
43
            DeviceProfile::FITBIT_ONE,
44
            DeviceProfile::FITBIT_SURGE,
45
            DeviceProfile::FITBIT_ULTRA,
46
            DeviceProfile::FITBIT_VERSA,
47
            DeviceProfile::FITBIT_ZIP,
48
            DeviceProfile::FITBIT_UNKNOWN,
49
        ];
50
    }
51
}
52