mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
16 lines
342 B
PHP
16 lines
342 B
PHP
<?php
|
|
|
|
namespace Combodo\iTop\PhpParser\Evaluation;
|
|
|
|
use PhpParser\Node\Expr\BinaryOp\BooleanAnd;
|
|
|
|
class BooleanAndEvaluator extends BinaryOpEvaluator {
|
|
public function GetHandledExpressionType(): ?string {
|
|
return BooleanAnd::class;
|
|
}
|
|
|
|
function EvaluateBinaryOperation(mixed $left, mixed $right) : mixed
|
|
{
|
|
return $left && $right;
|
|
}
|
|
} |