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