Table of Contents
-
$enumToId
: array<string|int, mixed>
-
$idToEnum
: array<string|int, mixed>
-
$instance
: self|null
-
fromId()
: PotionType|null
-
getInstance()
: self
-
reset()
: void
-
setInstance()
: void
-
toId()
: int
-
__construct()
: mixed
-
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
fromId()
public
fromId(int $id) : PotionType|null
Parameters
-
$id
: int
-
Return values
PotionType|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(PotionType $type) : int
Parameters
-
$type
: PotionType
-
Return values
int
—
__construct()
private
__construct() : mixed
Return values
mixed
—
make()
private
static make() : self
Return values
self
—
register()
private
register(int $id, PotionType $type) : void
Parameters
-
$id
: int
-
-
$type
: PotionType
-
Return values
void
—