LeverFacing
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
- $enumName : string
- $facing : int
- $nextId : int|null
- $runtimeId : int
- DOWN_AXIS_X() : LeverFacing
- DOWN_AXIS_Z() : LeverFacing
- EAST() : LeverFacing
- equals() : bool
- Returns whether the two objects are equivalent.
- getAll() : array<string|int, self>
- Returns all members of the enum.
- getFacing() : int
- 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
- NORTH() : LeverFacing
- SOUTH() : LeverFacing
- UP_AXIS_X() : LeverFacing
- UP_AXIS_Z() : LeverFacing
- WEST() : LeverFacing
- register() : void
- Registers the given object as an enum member.
- registerAll() : void
- setup() : void
- __construct() : mixed
Properties
$enumName
private
string
$enumName
$facing
private
int
$facing
$nextId
private
static int|null
$nextId
= null
$runtimeId
private
int
$runtimeId
Methods
DOWN_AXIS_X()
public
static DOWN_AXIS_X() : LeverFacing
Return values
LeverFacing —DOWN_AXIS_Z()
public
static DOWN_AXIS_Z() : LeverFacing
Return values
LeverFacing —EAST()
public
static EAST() : LeverFacing
Return values
LeverFacing —equals()
Returns whether the two objects are equivalent.
public
equals(self $other) : bool
Parameters
- $other : self
Return values
bool —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> —getFacing()
public
getFacing() : int
Return values
int —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 —NORTH()
public
static NORTH() : LeverFacing
Return values
LeverFacing —SOUTH()
public
static SOUTH() : LeverFacing
Return values
LeverFacing —UP_AXIS_X()
public
static UP_AXIS_X() : LeverFacing
Return values
LeverFacing —UP_AXIS_Z()
public
static UP_AXIS_Z() : LeverFacing
Return values
LeverFacing —WEST()
public
static WEST() : LeverFacing
Return values
LeverFacing —register()
Registers the given object as an enum member.
protected
static register(self $member) : void
Parameters
- $member : self
Tags
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, int $facing) : mixed
Parameters
- $enumName : string
- $facing : int