mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
move PhpParser/Evaluation classes in a specific namespave + composer dumpautoload
This commit is contained in:
18
sources/PhpParser/Evaluation/BinaryOpEvaluator.php
Normal file
18
sources/PhpParser/Evaluation/BinaryOpEvaluator.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\PhpParser\Evaluation;;
|
||||
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\BinaryOp;
|
||||
|
||||
abstract class BinaryOpEvaluator implements iExprEvaluator {
|
||||
abstract function EvaluateBinaryOperation(mixed $left, mixed $right) : mixed;
|
||||
|
||||
public function Evaluate(Expr $oExpr): mixed {
|
||||
/** @var BinaryOp $oExpr */
|
||||
|
||||
return $this->EvaluateBinaryOperation(
|
||||
PhpExpressionEvaluator::GetInstance()->EvaluateExpression($oExpr->left),
|
||||
PhpExpressionEvaluator::GetInstance()->EvaluateExpression($oExpr->right));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user