PluginEnableOrder
in package
Uses
EnumTrait
This doc-block is generated automatically, do not modify it manually.
This must be regenerated whenever registry members are added, removed or changed.
Tags
Table of Contents
- $aliases : array<string|int, mixed>
- $aliasMap : array<string|int, mixed>
- $enumName : string
- $nextId : int|null
- $runtimeId : int
- equals() : bool
- Returns whether the two objects are equivalent.
- fromString() : self|null
- getAliases() : array<string|int, string>
- getAll() : array<string|int, self>
- Returns all members of the enum.
- id() : int
- Returns a runtime-only identifier for this enum member. This will be different with each run, so don't try to hardcode it.
- name() : string
- POSTWORLD() : PluginEnableOrder
- STARTUP() : PluginEnableOrder
- register() : void
- registerAll() : void
- setup() : void
- __construct() : mixed
Properties
$aliases
private
array<string|int, mixed>
$aliases
Tags
$aliasMap
private
static array<string|int, mixed>
$aliasMap
= []
Tags
$enumName
private
string
$enumName
$nextId
private
static int|null
$nextId
= null
$runtimeId
private
int
$runtimeId
Methods
equals()
Returns whether the two objects are equivalent.
public
equals(self $other) : bool
Parameters
- $other : self
Return values
bool —fromString()
public
static fromString(string $name) : self|null
Parameters
- $name : string
Return values
self|null —getAliases()
public
getAliases() : array<string|int, string>
Tags
Return values
array<string|int, string> —getAll()
Returns all members of the enum.
public
static getAll() : array<string|int, self>
This is overridden to change the return typehint.
Return values
array<string|int, self> —id()
Returns a runtime-only identifier for this enum member. This will be different with each run, so don't try to hardcode it.
public
id() : int
This can be useful for switches or array indexing.
Return values
int —name()
public
name() : string
Return values
string —POSTWORLD()
public
static POSTWORLD() : PluginEnableOrder
Return values
PluginEnableOrder —STARTUP()
public
static STARTUP() : PluginEnableOrder
Return values
PluginEnableOrder —register()
protected
static register(self $member) : void
Parameters
- $member : self
Return values
void —registerAll()
protected
static registerAll(self ...$members) : void
Parameters
- $members : self
Return values
void —setup()
protected
static setup() : void
Return values
void —__construct()
private
__construct(string $enumName, array<string|int, string> $aliases) : mixed
Parameters
- $enumName : string
- $aliases : array<string|int, string>