private function serializeRuleParams($params)
    {
        $result = [];
        foreach ($params as $key => $value) {
            if (is_array($value)) {
                $value = '['.$this->serializeRuleParams($value).']';
            }
            if (is_numeric($key)) {
                $result[] = $value;
            } else {
                $result[] = "'$key' => $value";
            }
        }
        return implode(', ', $result);
    }