protected function createTabElement($current, string $type, int &$sorting): Model
    {
        $model                = new ContentModel();
        $model->tstamp        = time();
        $model->pid           = $current->pid;
        $model->ptable        = $current->ptable;
        $model->sorting       = $sorting;
        $model->type          = $type;
        $model->bs_tab_parent = $current->id;
        $model->save();

        return $model;
    }
protected function createTabElement($current, string $type, int &$sorting): Model
    {
        $model                = new ContentModel();
        $model->tstamp        = time();
        $model->pid           = $current->pid;
        $model->ptable        = $current->ptable;
        $model->sorting       = $sorting;
        $model->type          = $type;
        $model->bs_tab_parent = $current->id;
        $model->save();

        return $model;
    }
protected function createTabElement ( $ current , string $ type , int & $ sorting ) : Model { $ model = new ContentModel ( ) ; $ model -> tstamp = time ( ) ; $ model -> pid = $ current -> pid ; $ model -> ptable = $ current -> ptable ; $ model -> sorting = $ sorting ; $ model -> type = $ type ; $ model -> bs_tab_parent = $ current -> id ; $ model -> save ( ) ; return $ model ; }
Create a tab element.

@param ContentModel $current Current content model.
@param string       $type    Type of the content model.
@param int          $sorting The sorting value.

@return Model
Create a tab element .