private function matchRule($rule, $options)
    {
        $match = false;
        $type = array_get($rule, 'parameter', 'type');
        $operator = array_get($rule, 'operator', 'equal');
        $value = array_get($rule, 'value', 'default');

        if ($operator == 'equal') {
            $match = ($value === $options[$type]);
        } elseif ($operator == 'notequal') {
            $match = ($value !== $options[$type]);
        }

        return $match;
    }
private function matchRule($rule, $options)
    {
        $match = false;
        $type = array_get($rule, 'parameter', 'type');
        $operator = array_get($rule, 'operator', 'equal');
        $value = array_get($rule, 'value', 'default');

        if ($operator == 'equal') {
            $match = ($value === $options[$type]);
        } elseif ($operator == 'notequal') {
            $match = ($value !== $options[$type]);
        }

        return $match;
    }
private function matchRule ( $ rule , $ options ) { $ match = false ; $ type = array_get ( $ rule , 'parameter' , 'type' ) ; $ operator = array_get ( $ rule , 'operator' , 'equal' ) ; $ value = array_get ( $ rule , 'value' , 'default' ) ; if ( $ operator == 'equal' ) { $ match = ( $ value === $ options [ $ type ] ) ; } elseif ( $ operator == 'notequal' ) { $ match = ( $ value !== $ options [ $ type ] ) ; } return $ match ; }
Parse and Match rule with options.

@param $rule
@param $options

@return bool
Parse and Match rule with options .