浏览代码

added trim for string

develop
Robin Thoni 8 年前
父节点
当前提交
24fde00ee5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      src/Utils/Dbo/LuStringDbo.php

+ 5
- 0
src/Utils/Dbo/LuStringDbo.php 查看文件

@@ -82,4 +82,9 @@ class LuStringDbo extends LuDbo
82 82
             throw new LuDboConstraintException("String length must be smaller or equal to ${max}");
83 83
         }
84 84
     }
85
+    
86
+    public function trim()
87
+    {
88
+        $this->_value = trim($this->_value);
89
+    }
85 90
 }

正在加载...
取消
保存