Browse Source

added trim for string

develop
Robin Thoni 8 years ago
parent
commit
24fde00ee5
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/Utils/Dbo/LuStringDbo.php

+ 5
- 0
src/Utils/Dbo/LuStringDbo.php View File

82
             throw new LuDboConstraintException("String length must be smaller or equal to ${max}");
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…
Cancel
Save