MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

cStatus

MMO\core\entities · 1 symbole · générée le 27 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
Espace de noms
MMO\core\entities

Constantes6

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

Propriétés2

name

readonly
readonly string $name
Type
string

value

readonly
readonly string $value
Type
string

Méthodes4

cases()

static
static function cases(): array
retournearray

from($value)

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

index()

cStatus.php:20
function index(): int
retourneintthis 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
retournenull | static