mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-29 21:48:45 +02:00
16 lines
326 B
PHP
16 lines
326 B
PHP
<?php
|
|
|
|
namespace evaluation\expression;
|
|
|
|
use PhpParser\Node\Expr\BinaryOp\BooleanOr;
|
|
|
|
class BooleanOrEvaluator extends BinaryOpEvaluator {
|
|
public function GetHandledExpressionType(): string {
|
|
return BooleanOr::class;
|
|
}
|
|
|
|
function EvaluateBinaryOperation(mixed $left, mixed $right) : mixed
|
|
{
|
|
return $left || $right;
|
|
}
|
|
} |