Completed
Push — master ( a6dbad...4886a1 )
by Michael
01:33
created

FitSdkMapping::getEnum()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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\Mapping;
13
14
use Runalyze\Devices\Device\DeviceProfile;
15
16
class FitSdkMapping
17
{
18
    public static $mappingArray = [
19
        2266 => DeviceProfile::GARMIN_APPROACH_S_20,
20
        1936 => DeviceProfile::GARMIN_APPROACH_S_6,
21
        2262 => DeviceProfile::GARMIN_D_2_BRAVO,
22
        2547 => DeviceProfile::GARMIN_D_2_BRAVO_TITANIUM,
23
        2530 => DeviceProfile::GARMIN_EDGE_820,
24
        2204 => DeviceProfile::GARMIN_EDGE_EXPLORE_1000,
25
        2531 => DeviceProfile::GARMIN_EDGE_EXPLORE_820,
26
        1736 => DeviceProfile::GARMIN_EDGE_TOURING,
27
        1836 => DeviceProfile::GARMIN_EDGE_1000,
28
        2070 => DeviceProfile::GARMIN_EDGE_1000,
29
        2053 => DeviceProfile::GARMIN_EDGE_1000,
30
        2100 => DeviceProfile::GARMIN_EDGE_1000,
31
        2052 => DeviceProfile::GARMIN_EDGE_1000,
32
        2238 => DeviceProfile::GARMIN_EDGE_20,
33
        1325 => DeviceProfile::GARMIN_EDGE_200,
34
        1555 => DeviceProfile::GARMIN_EDGE_200,
35
        2147 => DeviceProfile::GARMIN_EDGE_25,
36
        1036 => DeviceProfile::GARMIN_EDGE_500,
37
        1387 => DeviceProfile::GARMIN_EDGE_500,
38
        1213 => DeviceProfile::GARMIN_EDGE_500,
39
        1422 => DeviceProfile::GARMIN_EDGE_500,
40
        1199 => DeviceProfile::GARMIN_EDGE_500,
41
        1561 => DeviceProfile::GARMIN_EDGE_510,
42
        1821 => DeviceProfile::GARMIN_EDGE_510,
43
        1742 => DeviceProfile::GARMIN_EDGE_510,
44
        1918 => DeviceProfile::GARMIN_EDGE_510,
45
        2067 => DeviceProfile::GARMIN_EDGE_520,
46
        1169 => DeviceProfile::GARMIN_EDGE_800,
47
        1386 => DeviceProfile::GARMIN_EDGE_800,
48
        1334 => DeviceProfile::GARMIN_EDGE_800,
49
        1497 => DeviceProfile::GARMIN_EDGE_800,
50
        1333 => DeviceProfile::GARMIN_EDGE_800,
51
        1567 => DeviceProfile::GARMIN_EDGE_810,
52
        1822 => DeviceProfile::GARMIN_EDGE_810,
53
        1721 => DeviceProfile::GARMIN_EDGE_810,
54
        1823 => DeviceProfile::GARMIN_EDGE_810,
55
        1988 => DeviceProfile::GARMIN_EPIX,
56
        2140 => DeviceProfile::GARMIN_ETREX_TOUCH,
57
        1551 => DeviceProfile::GARMIN_FENIX,
58
        1967 => DeviceProfile::GARMIN_FENIX_2,
59
        2050 => DeviceProfile::GARMIN_FENIX_3,
60
        2188 => DeviceProfile::GARMIN_FENIX_3,
61
        2189 => DeviceProfile::GARMIN_FENIX_3,
62
        2432 => DeviceProfile::GARMIN_FENIX_3,
63
        2413 => DeviceProfile::GARMIN_FENIX_3_H_R,
64
        2697 => DeviceProfile::GARMIN_FENIX_5,
65
        2544 => DeviceProfile::GARMIN_FENIX_5_S,
66
        2604 => DeviceProfile::GARMIN_FENIX_5_X,
67
        1482 => DeviceProfile::GARMIN_FORERUNNER_10,
68
        1688 => DeviceProfile::GARMIN_FORERUNNER_10,
69
        1124 => DeviceProfile::GARMIN_FORERUNNER_110,
70
        1274 => DeviceProfile::GARMIN_FORERUNNER_110,
71
        1903 => DeviceProfile::GARMIN_FORERUNNER_15,
72
        2061 => DeviceProfile::GARMIN_FORERUNNER_15,
73
        1360 => DeviceProfile::GARMIN_FORERUNNER_210,
74
        1631 => DeviceProfile::GARMIN_FORERUNNER_220,
75
        1931 => DeviceProfile::GARMIN_FORERUNNER_220,
76
        1930 => DeviceProfile::GARMIN_FORERUNNER_220,
77
        2073 => DeviceProfile::GARMIN_FORERUNNER_220,
78
        2174 => DeviceProfile::GARMIN_FORERUNNER_220,
79
        2153 => DeviceProfile::GARMIN_FORERUNNER_225,
80
        2219 => DeviceProfile::GARMIN_FORERUNNER_225,
81
        14 => DeviceProfile::GARMIN_FORERUNNER_225,
82
        2157 => DeviceProfile::GARMIN_FORERUNNER_230,
83
        2431 => DeviceProfile::GARMIN_FORERUNNER_235,
84
        2148 => DeviceProfile::GARMIN_FORERUNNER_25,
85
        473 => DeviceProfile::GARMIN_FORERUNNER_301,
86
        474 => DeviceProfile::GARMIN_FORERUNNER_301,
87
        475 => DeviceProfile::GARMIN_FORERUNNER_301,
88
        494 => DeviceProfile::GARMIN_FORERUNNER_301,
89
        1018 => DeviceProfile::GARMIN_FORERUNNER_310_X_T,
90
        1446 => DeviceProfile::GARMIN_FORERUNNER_310_X_T,
91
        717 => DeviceProfile::GARMIN_FORERUNNER_405,
92
        987 => DeviceProfile::GARMIN_FORERUNNER_405,
93
        782 => DeviceProfile::GARMIN_FORERUNNER_50,
94
        988 => DeviceProfile::GARMIN_FORERUNNER_60,
95
        1345 => DeviceProfile::GARMIN_FORERUNNER_610,
96
        1410 => DeviceProfile::GARMIN_FORERUNNER_610,
97
        1623 => DeviceProfile::GARMIN_FORERUNNER_620,
98
        1929 => DeviceProfile::GARMIN_FORERUNNER_620,
99
        1928 => DeviceProfile::GARMIN_FORERUNNER_620,
100
        2072 => DeviceProfile::GARMIN_FORERUNNER_620,
101
        2173 => DeviceProfile::GARMIN_FORERUNNER_620,
102
        2156 => DeviceProfile::GARMIN_FORERUNNER_630,
103
        1436 => DeviceProfile::GARMIN_FORERUNNER_70,
104
        1328 => DeviceProfile::GARMIN_FORERUNNER_910_X_T,
105
        1537 => DeviceProfile::GARMIN_FORERUNNER_910_X_T,
106
        1600 => DeviceProfile::GARMIN_FORERUNNER_910_X_T,
107
        1664 => DeviceProfile::GARMIN_FORERUNNER_910_X_T,
108
        1765 => DeviceProfile::GARMIN_FORERUNNER_920_X_T,
109
        2131 => DeviceProfile::GARMIN_FORERUNNER_920_X_T,
110
        2132 => DeviceProfile::GARMIN_FORERUNNER_920_X_T,
111
        2130 => DeviceProfile::GARMIN_FORERUNNER_920_X_T,
112
        2691 => DeviceProfile::GARMIN_FORERUNNER_935_X_T,
113
        1499 => DeviceProfile::GARMIN_SWIM,
114
        1907 => DeviceProfile::GARMIN_VIVO_ACTIVE,
115
        2160 => DeviceProfile::GARMIN_VIVO_ACTIVE,
116
        2337 => DeviceProfile::GARMIN_VIVO_ACTIVE_H_R,
117
        1837 => DeviceProfile::GARMIN_VIVO_FIT,
118
        2606 => DeviceProfile::GARMIN_VIVO_FIT_JR,
119
        2150 => DeviceProfile::GARMIN_VIVO_FIT_2,
120
        2406 => DeviceProfile::GARMIN_VIVO_FIT_3,
121
        2368 => DeviceProfile::GARMIN_VIVO_MOVE,
122
        1956 => DeviceProfile::GARMIN_VIVO_SMART,
123
        2135 => DeviceProfile::GARMIN_VIVO_SMART,
124
        2347 => DeviceProfile::GARMIN_VIVO_SMART_GPS_H_R,
125
        2348 => DeviceProfile::GARMIN_VIVO_SMART_H_R,
126
    ];
127
128
    /**
129
     * @param  int   $creatorId
130
     * @return mixed
131
     */
132 1
    public static function getEnum($creatorId)
133
    {
134 1
        return self::$mappingArray[$creatorId];
135
    }
136
}
137