src/Braincrafted/ArrayQuery/WhereEvaluation.php
protected function evaluateFilters($value, array $clause)
    {
        if (true === isset($clause['filters'])) {
            if (false === is_array($clause['filters'])) {
                $clause['filters'] = [ $clause['filters'] ];
            }
            foreach ($clause['filters'] as $filter) {
                $value = $this->evaluateFilter($value, $filter);
            }
        }

        return $value;
    }
protected function evaluateFilters($value, array $clause)
    {
        if (true === isset($clause['filters'])) {
            if (false === is_array($clause['filters'])) {
                $clause['filters'] = [ $clause['filters'] ];
            }
            foreach ($clause['filters'] as $filter) {
                $value = $this->evaluateFilter($value, $filter);
            }
        }

        return $value;
    }
protected function evaluateFilters ( $ value , array $ clause ) { if ( true === isset ( $ clause [ 'filters' ] ) ) { if ( false === is_array ( $ clause [ 'filters' ] ) ) { $ clause [ 'filters' ] = [ $ clause [ 'filters' ] ] ; } foreach ( $ clause [ 'filters' ] as $ filter ) { $ value = $ this -> evaluateFilter ( $ value , $ filter ) ; } } return $ value ; }
Evaluates the given value with the given clause.

@param mixed $value  The value to evaluate.
@param array $clause The clause to evaluate the item with.

@return mixed The evaluated value.

@throws Braincrafted\ArrayQuery\Exception\UnkownFilterException if the given filter does not exist.

@see evaluate()
Evaluates the given value with the given clause .