for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Runalyze\Devices\Mapping;
use Runalyze\Devices\Device\DeviceProfile;
class SigmaSportFitSdkMapping
{
/** @var int[]|string[] */
protected $Mapping = [];
protected function getMapping()
return [
46 => DeviceProfile::SIGMA_SPORT_ID_TRI,
44 => DeviceProfile::SIGMA_SPORT_ROX_120_SPORT,
41 => DeviceProfile::SIGMA_SPORT_ROX_110_GPS,
15 => DeviceProfile::SIGMA_SPORT_ROX_100_GPS,
];
* Unknown:
* 46
}
public function __construct()
$this->Mapping = $this->getMapping();
$this->getMapping()
array<integer,?>
array<integer,integer|string>
$Mapping
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
/**
* @param int|string $value
* @return int|string
public function toInternal($value)
if (isset($this->Mapping[$value])) {
return $this->Mapping[$value];
return;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..