ItemTypeDictionary
Table of Contents
-
$intToStringIdMap
: array<string|int, mixed>
-
$itemTypes
: array<string|int, mixed>
-
$stringToIntMap
: array<string|int, mixed>
-
__construct()
: mixed
-
fromIntId()
: string
-
fromStringId()
: int
-
getEntries()
: array<string|int, ItemTypeEntry>
$intToStringIdMap
private
array<string|int, mixed>
$intToStringIdMap
= []
-
phpstan-var
-
$itemTypes
private
array<string|int, mixed>
$itemTypes
-
phpstan-var
-
$stringToIntMap
private
array<string|int, mixed>
$stringToIntMap
= []
-
phpstan-var
-
__construct()
public
__construct(array<string|int, ItemTypeEntry> $itemTypes) : mixed
Parameters
-
$itemTypes
: array<string|int, ItemTypeEntry>
-
Return values
mixed
—
fromIntId()
public
fromIntId(int $intId) : string
Parameters
-
$intId
: int
-
Return values
string
—
fromStringId()
public
fromStringId(string $stringId) : int
Parameters
-
$stringId
: string
-
Return values
int
—
getEntries()
public
getEntries() : array<string|int, ItemTypeEntry>
-
phpstan-return
-
Return values
array<string|int, ItemTypeEntry>
—