mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
16 lines
320 B
PHP
16 lines
320 B
PHP
<?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;
|
|
}
|
|
} |