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

cLogicOperator

MMO\math\enums · 1 symbole · générée le 27 Oct 2026

enum

cLogicOperator

cLogicOperator.php:10
enum MMO\math\enums\cLogicOperator: string implements MMO\math\interfaces\iStandardOperator
Espace de noms
MMO\math\enums
Implémente
iStandardOperator

Index

And
Not
Or
name readonly
value readonly
cases() static
commute($args)Commute operation (reverse order of arguments)
from($value) static
priority()
toNumber($args)
tryFrom($value) static
units($args)
__invoke($args)

Constantes3

And

const And = MMO\math\enums\cLogicOperator::And

Not

const Not = MMO\math\enums\cLogicOperator::Not

Or

const Or = MMO\math\enums\cLogicOperator::Or

Propriétés2

name

readonly
readonly string $name
Type
string

value

readonly
readonly string $value
Type
string

Méthodes8

cases()

static
static function cases(): array
retournearray

commute($args)

cLogicOperator.php:48

Commute operation (reverse order of arguments)

function commute(MMO\math\interfaces\iNumber|int|float ...$args): MMO\math\interfaces\iNumber
...$argsiNumber | int | floatlist of 2 numbers
retourneiNumber

from($value)

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

tryFrom($value)

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

__invoke($args)

cLogicOperator.php:31
function __invoke(MMO\math\interfaces\iNumber|int|float ...$args): int|float|null
...$argsiNumber | int | float
retourneint | float | null[0,1] where 1.0 means the constraint is fullfilled. AND return the minimum number in all its arguments OR return the maximum number in all its arguments NOT inverse the number with 1 null if no argument has a value