thomas-kl1/php-combine-conditions

View on GitHub
src/Operator/Comparator/NidenOperator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);
/**
 * Copyright © Thomas Klein, All rights reserved.
 * See LICENSE bundled with this library for license details.
 */

namespace LogicTree\Operator\Comparator;

/**
 * The NOT IDENTICAL:
 * The output is "true" if $expr1 is not equal to $expr2, or they are not of the same type.
 */
final class NidenOperator extends AbstractCompareTwo
{
    public const CODE = 'niden';

    public function executeComparison(mixed $expr1, mixed $expr2): bool
    {
        return $expr1 !== $expr2;
    }
}