Completed
Push — master ( 6d7f70...76d437 )
by Michael
19s
created

LezyneFitSdkMapping::getMapping()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 5
cp 0
rs 9.9666
c 0
b 0
f 0
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\Mapping;
13
14
class LezyneFitSdkMapping
15
{
16
    /** @var int[]|string[] */
17
    protected $Mapping = [];
18
19
    protected function getMapping()
20
    {
21
        return [
22
        ];
23
        /*
24
         * Unknown:
25
         * 13
26
         */
27
    }
28
29
    public function __construct()
30
    {
31
        $this->Mapping = $this->getMapping();
32
    }
33
34
    /**
35
     * @param  int|string $value
36
     * @return int|string
37
     */
38
    public function toInternal($value)
39
    {
40
        if (isset($this->Mapping[$value])) {
41
            return $this->Mapping[$value];
42
        }
43
44
        return;
45
    }
46
}
47