Index

ConstraintOperation

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

class

ConstraintOperation

ConstraintOperation.php:13
class MMO\math\operations\ConstraintOperation extends MMO\math\operations\Operation
Namespace
MMO\math\operations
Extends
Operation

Methods4

Inherited members (31)
PropertiesDeclared byDescription
contentOperation
operatorOperation
MethodsDeclared byDescription
addListener($callable, $target)Operation
canCommute()Operation
canInverseEquality()Operation
clear()OperationEmpty the underlying content, keeping the object itself.
commute()Operation
compareTo($value)Operation
contains($num)OperationTest if operation contains the number or an instance of it
count()Operation\Countable::count
debugName()Operation
execute()Operation
extract($num, $result)Operation
getIterator()Operation\IteratorAggregate::getIterator
getOperator()Operation
hasUnits()Operation
inverseEquality($value)Operation
isEmpty()Operation
jsonSerialize()Operation\JsonSerializable::jsonSerialize -- the raw content is returned as-is (not recursively converted), so json_encode() relies on any nested iArray values being JsonSerializable themselves.
keys()Operation
loadArray($data)OperationLoad every entry of a plain array into the content, through offsetSet (so any offsetSet() override defined by the class using this trait, e.g.
loopNumber()Operation
offsetExists($key)Operation\ArrayAccess::offsetExists
offsetGet($key)Operation\ArrayAccess::offsetGet
offsetSet($key, $value)Operation\ArrayAccess::offsetSet -- a null $key appends ($bag[] = $value), like a plain PHP array.
offsetUnset($key)Operation\ArrayAccess::offsetUnset -- on a list (sequential integer keys, as produced by $bag[] = ...), the element is spliced out (closing the gap and reindexing), matching \unset() semantics on a plain …
removeListener($callable)Operation
simplify()Operation
toArray()OperationConvert the content to a plain array, recursively converting any nested iArray value (e.g.
units()OperationGet the units of this operation.
__toString()Operation