Index

cStatus

MMO\core\entities · 1 symbol · generated 5 Oct 2026

enum

cStatus

cStatus.php:11

An entity's lifecycle status, roughly ordered from least to most "settled" (see index) -- an application is free to use only a subset of these, and to attach its own meaning to each transition.

enum MMO\core\entities\cStatus: string
Namespace
MMO\core\entities

Constants6

ACTIVE

const ACTIVE = MMO\core\entities\cStatus::ACTIVE

ARCHIVE

const ARCHIVE = MMO\core\entities\cStatus::ARCHIVE

DRAFT

const DRAFT = MMO\core\entities\cStatus::DRAFT

FINAL

const FINAL = MMO\core\entities\cStatus::FINAL

PENDING

const PENDING = MMO\core\entities\cStatus::PENDING

VALIDATED

const VALIDATED = MMO\core\entities\cStatus::VALIDATED

Properties2

name

readonly
readonly string $name
Type
string

value

readonly
readonly string $value
Type
string

Methods4

cases()

static
static function cases(): array
returnsarray

from($value)

static
static function from(string|int $value): static
$valuestring | int
returnsstatic

index()

cStatus.php:20
function index(): int
returnsintthis status's position in the lifecycle above (0 = DRAFT, 5 = ARCHIVE), e.g. to compare two statuses' relative order.

tryFrom($value)

static
static function tryFrom(string|int $value): ?static
$valuestring | int
returnsnull | static