Fitbit::getDeviceEnumList()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 23

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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