protected function serializeIndexNameToAttribute($indexName)
    {
        if (strtolower($indexName) === 'primary') {
            $indexName = 'prim';
        }
        $indexName = str_replace(['ID'], ['Id'], $indexName);

        return '\'' . snake_case($indexName) . '\'';
    }
protected function serializeIndexNameToAttribute($indexName)
    {
        if (strtolower($indexName) === 'primary') {
            $indexName = 'prim';
        }
        $indexName = str_replace(['ID'], ['Id'], $indexName);

        return '\'' . snake_case($indexName) . '\'';
    }
protected function serializeIndexNameToAttribute ( $ indexName ) { if ( strtolower ( $ indexName ) === 'primary' ) { $ indexName = 'prim' ; } $ indexName = str_replace ( [ 'ID' ] , [ 'Id' ] , $ indexName ) ; return '\'' . snake_case ( $ indexName ) . '\'' ; }
Serialize index name to "pass" as attribute

@param string $indexName

@return string
Serialize index name to pass as attribute