瀏覽代碼

去除模型树设置相关字段名称方法

jqh 5 年之前
父節點
當前提交
4b1e31d6ee
共有 1 個文件被更改,包括 0 次插入30 次删除
  1. 0 30
      src/Traits/ModelTree.php

+ 0 - 30
src/Traits/ModelTree.php

@@ -58,16 +58,6 @@ trait ModelTree
         return empty($this->parentColumn) ? 'parent_id' : $this->parentColumn;
     }
 
-    /**
-     * Set parent column.
-     *
-     * @param string $column
-     */
-    public function setParentColumn(string $column)
-    {
-        $this->parentColumn = $column;
-    }
-
     /**
      * Get title column.
      *
@@ -78,16 +68,6 @@ trait ModelTree
         return empty($this->titleColumn) ? 'title' : $this->titleColumn;
     }
 
-    /**
-     * Set title column.
-     *
-     * @param string $column
-     */
-    public function setTitleColumn(string $column)
-    {
-        $this->titleColumn = $column;
-    }
-
     /**
      * Get order column name.
      *
@@ -98,16 +78,6 @@ trait ModelTree
         return empty($this->orderColumn) ? 'order' : $this->orderColumn;
     }
 
-    /**
-     * Set order column.
-     *
-     * @param string $column
-     */
-    public function setOrderColumn(string $column)
-    {
-        $this->orderColumn = $column;
-    }
-
     /**
      * Set query callback to model.
      *