Index

cLogicOperator

MMO\math\enums · 1 symbol · generated 30 Sep 2026

enum

cLogicOperator

cLogicOperator.php:10
enum MMO\math\enums\cLogicOperator: string implements MMO\math\interfaces\iStandardOperator
Namespace
MMO\math\enums
Implements
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)

Constants3

And

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

Not

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

Or

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

Properties2

name

readonly
readonly string $name
Type
string

value

readonly
readonly string $value
Type
string

Methods8

cases()

static
static function cases(): array
returnsarray

commute($args)

cLogicOperator.php:46

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
returnsiNumber

from($value)

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

tryFrom($value)

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

__invoke($args)

cLogicOperator.php:29
function __invoke(MMO\math\interfaces\iNumber|int|float ...$args): int|float|null
...$argsiNumber | int | float
returnsint | 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