protected function matchFilters($params)
    {
        foreach ($this->filters as $key => $expression) {
            if (!isset($params[$key])) {
                return false;
            }

            if (!preg_match($expression, $params[$key])) {
                return false;
            }
        }

        return true;
    }
protected function matchFilters($params)
    {
        foreach ($this->filters as $key => $expression) {
            if (!isset($params[$key])) {
                return false;
            }

            if (!preg_match($expression, $params[$key])) {
                return false;
            }
        }

        return true;
    }
protected function matchFilters ( $ params ) { foreach ( $ this -> filters as $ key => $ expression ) { if ( ! isset ( $ params [ $ key ] ) ) { return false ; } if ( ! preg_match ( $ expression , $ params [ $ key ] ) ) { return false ; } } return true ; }
Validate params against given expressions.

@param $params

@return bool
Validate params against given expressions .