<?php

namespace RTMMailComposer\ConditionProcessor;

interface ConditionProcessorInterface
{


    /**
     * Processes the expression using the dynamically defined expression language.
     * @param $expression string
     * @param $parameters array
     *
     * @return bool The result of the evaluation of the expression
     * @throws ConditionProcessorException if the parameters for the expression are invalid or the function is not registered
     */
    public function process(array $conditionFunction, array $parameters): bool;
}
