Browse Source

added not empty check for string

develop
Robin Thoni 8 years ago
parent
commit
a45d2c3d29
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

64
         }
64
         }
65
     }
65
     }
66
 
66
 
67
+    public function notEmpty($trim = true)
68
+    {
69
+        static::min(1, $trim);
70
+    }
71
+
67
     public function min($min, $trim = true)
72
     public function min($min, $trim = true)
68
     {
73
     {
69
         if (self::getLength($trim) < $min) {
74
         if (self::getLength($trim) < $min) {

Loading…
Cancel
Save