public function listToMap(array $list)
    {
        $map = array();
        for ($i = 0, $n = count($list); $i < $n; $i += 2) {
            $map[$list[$i]] = $list[$i + 1];
        }
        return (object)$map;
    }
public function listToMap(array $list)
    {
        $map = array();
        for ($i = 0, $n = count($list); $i < $n; $i += 2) {
            $map[$list[$i]] = $list[$i + 1];
        }
        return (object)$map;
    }
public function listToMap ( array $ list ) { $ map = array ( ) ; for ( $ i = 0 , $ n = count ( $ list ) ; $ i < $ n ; $ i += 2 ) { $ map [ $ list [ $ i ] ] = $ list [ $ i + 1 ] ; } return ( object ) $ map ; }
converts the given list to a map

@param mixed[]|array<mixed> $list
@return \stdClass `map<string,mixed>`
@internal
converts the given list to a map