public function addConditionToClause(array $clauseConditions, string $operation, string ...$conditions) : array
    {
        foreach ($conditions as $condition) {
            $clauseConditions[] = ['operation' => $operation, 'condition' => $condition];
        }

        return $clauseConditions;
    }
public function addConditionToClause(array $clauseConditions, string $operation, string ...$conditions) : array
    {
        foreach ($conditions as $condition) {
            $clauseConditions[] = ['operation' => $operation, 'condition' => $condition];
        }

        return $clauseConditions;
    }
public function addConditionToClause ( array $ clauseConditions , string $ operation , string ... $ conditions ) : array { foreach ( $ conditions as $ condition ) { $ clauseConditions [ ] = [ 'operation' => $ operation , 'condition' => $ condition ] ; } return $ clauseConditions ; }
Adds a condition to a clause

@param array $clauseConditions The list of conditions that already belong to the clause
@param string $operation Either "AND" or "OR", indicating how this condition is being added to the list of conditions
@param string[] $conditions,... A variable list of conditions to be met
@return array The input array with the condition added
Adds a condition to a clause