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);
    }
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);
    }
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 ) ; }
Casts rule params array to string.
@param array $params
@return string
Casts rule params array to string .