src/JsonQueriable.php
protected function processConditions()
    {
        $data = $this->getData();
        $conditions = $this->_conditions;
        $result = array_filter($data, function ($val) use ($conditions) {
            $res = false;
            foreach ($conditions as $cond) {
                $tmp = true;
                foreach ($cond as $rule) {
                    $function = self::$_rulesMap[$rule['condition']];
                    if (!is_callable($function)) {
                        if (!method_exists(Condition::class, $function)) {
                            throw new ConditionNotAllowedException("Exception: $function condition not allowed");
                        }
                        
                        $function = [Condition::class, $function];
                    }
                    
                    $value = $this->getFromNested($val, $rule['key']);
                    $return = $value instanceof ValueNotFound ? false :  call_user_func_array($function, [$value, $rule['value']]);
                    $tmp &= $return;
                }
                $res |= $tmp;
            }
            return $res;
        });

        return $result;
    }
protected function processConditions()
    {
        $data = $this->getData();
        $conditions = $this->_conditions;
        $result = array_filter($data, function ($val) use ($conditions) {
            $res = false;
            foreach ($conditions as $cond) {
                $tmp = true;
                foreach ($cond as $rule) {
                    $function = self::$_rulesMap[$rule['condition']];
                    if (!is_callable($function)) {
                        if (!method_exists(Condition::class, $function)) {
                            throw new ConditionNotAllowedException("Exception: $function condition not allowed");
                        }
                        
                        $function = [Condition::class, $function];
                    }
                    
                    $value = $this->getFromNested($val, $rule['key']);
                    $return = $value instanceof ValueNotFound ? false :  call_user_func_array($function, [$value, $rule['value']]);
                    $tmp &= $return;
                }
                $res |= $tmp;
            }
            return $res;
        });

        return $result;
    }
protected function processConditions ( ) { $ data = $ this -> getData ( ) ; $ conditions = $ this -> _conditions ; $ result = array_filter ( $ data , function ( $ val ) use ( $ conditions ) { $ res = false ; foreach ( $ conditions as $ cond ) { $ tmp = true ; foreach ( $ cond as $ rule ) { $ function = self :: $ _rulesMap [ $ rule [ 'condition' ] ] ; if ( ! is_callable ( $ function ) ) { if ( ! method_exists ( Condition :: class , $ function ) ) { throw new ConditionNotAllowedException ( "Exception: $function condition not allowed" ) ; } $ function = [ Condition :: class , $ function ] ; } $ value = $ this -> getFromNested ( $ val , $ rule [ 'key' ] ) ; $ return = $ value instanceof ValueNotFound ? false : call_user_func_array ( $ function , [ $ value , $ rule [ 'value' ] ] ) ; $ tmp &= $ return ; } $ res |= $ tmp ; } return $ res ; } ) ; return $ result ; }
process AND and OR conditions

@return array|string|object
@throws ConditionNotAllowedException
process AND and OR conditions