complete Evaluators list + autoload

This commit is contained in:
odain
2025-09-03 16:48:40 +02:00
parent 794a9afe3e
commit c14ac90a13
42 changed files with 522 additions and 80 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace Combodo\iTop\PhpParser\Evaluation;
use PhpParser\Node\Expr\BinaryOp\Mod;
class ModEvaluator extends BinaryOpEvaluator {
public function GetHandledExpressionType(): ?string {
return Mod::class;
}
function EvaluateBinaryOperation(mixed $left, mixed $right) : mixed
{
return $left % $right;
}
}