Completed
Pull Request — master (#6)
by Michael
01:11
created

LezyneFitSdkMapping::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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