Table of Contents
-
$enumToId
: array<string|int, mixed>
-
$idToEnum
: array<string|int, mixed>
-
$instance
: self|null
-
__construct()
: mixed
-
fromId()
: GameMode|null
-
getInstance()
: self
-
reset()
: void
-
setInstance()
: void
-
toId()
: int
-
make()
: self
-
register()
: void
$enumToId
private
array<string|int, mixed>
$enumToId
= []
-
phpstan-var
-
$idToEnum
private
array<string|int, mixed>
$idToEnum
= []
-
phpstan-var
-
$instance
private
static self|null
$instance
= null
__construct()
public
__construct() : mixed
Return values
mixed
—
fromId()
public
fromId(int $id) : GameMode|null
Parameters
-
$id
: int
-
Return values
GameMode|null
—
getInstance()
public
static getInstance() : self
Return values
self
—
reset()
public
static reset() : void
Return values
void
—
setInstance()
public
static setInstance(self $instance) : void
Parameters
-
$instance
: self
-
Return values
void
—
toId()
public
toId(GameMode $type) : int
Parameters
-
$type
: GameMode
-
Return values
int
—
make()
private
static make() : self
Return values
self
—
register()
private
register(int $id, GameMode $type) : void
Parameters
-
$id
: int
-
-
$type
: GameMode
-
Return values
void
—