소스 검색

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
 }

Loading…
취소
저장