private function validateComparisonOperators($value) 
    {
        $operator = strtoupper(trim($value));
        $isValid = in_array($operator, $this->comparisonOperators);
        
        if($isValid === true) {
            return $operator;
        } 
        
        throw new \Exception("Comparison operator $value is not supported.");
    }
private function validateComparisonOperators($value) 
    {
        $operator = strtoupper(trim($value));
        $isValid = in_array($operator, $this->comparisonOperators);
        
        if($isValid === true) {
            return $operator;
        } 
        
        throw new \Exception("Comparison operator $value is not supported.");
    }
private function validateComparisonOperators ( $ value ) { $ operator = strtoupper ( trim ( $ value ) ) ; $ isValid = in_array ( $ operator , $ this -> comparisonOperators ) ; if ( $ isValid === true ) { return $ operator ; } throw new \ Exception ( "Comparison operator $value is not supported." ) ; }
Validate if the comparisonOperator is supported.

@throws Exception
@return bool $operator
Validate if the comparisonOperator is supported .