protected function replaceVersioned($versionTable, &$stub)
    {
        if (! $versionTable) {
            $stub = str_replace('{{versioned}}', $this->getArrayAsText([]), $stub);
            return;
        }

        $versioned = [];
        foreach ($versionTable['columns'] as $column) {
            if (! $column['primary'] || $column['name'] == 'version') {
                $versioned[] = $column['name'];
            }
        }
        $stub = str_replace('{{versioned}}', $this->getArrayAsText($versioned), $stub);
    }
protected function replaceVersioned($versionTable, &$stub)
    {
        if (! $versionTable) {
            $stub = str_replace('{{versioned}}', $this->getArrayAsText([]), $stub);
            return;
        }

        $versioned = [];
        foreach ($versionTable['columns'] as $column) {
            if (! $column['primary'] || $column['name'] == 'version') {
                $versioned[] = $column['name'];
            }
        }
        $stub = str_replace('{{versioned}}', $this->getArrayAsText($versioned), $stub);
    }
protected function replaceVersioned ( $ versionTable , & $ stub ) { if ( ! $ versionTable ) { $ stub = str_replace ( '{{versioned}}' , $ this -> getArrayAsText ( [ ] ) , $ stub ) ; return ; } $ versioned = [ ] ; foreach ( $ versionTable [ 'columns' ] as $ column ) { if ( ! $ column [ 'primary' ] || $ column [ 'name' ] == 'version' ) { $ versioned [ ] = $ column [ 'name' ] ; } } $ stub = str_replace ( '{{versioned}}' , $ this -> getArrayAsText ( $ versioned ) , $ stub ) ; }
Replace versioned.

@param mixed $versionTable
@param string $stub
@return void
Replace versioned .