Browse Source

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

jqh 5 năm trước cách đây
mục cha
commit
4b1e31d6ee
1 tập tin đã thay đổi với 0 bổ sung30 xóa
  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.
      *