File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 2121 /**
2222 * Representa un componente de un número de Version.
2323 * Extiende la clase IntString, pero restringe los valores que puede tomar.
24- *
25- *
24+ *
25+ *
2626 * @package NelsonMartell
2727 * @author Nelson Martell (@yahoo.es: nelson6e65-dev)
2828 * */
@@ -78,5 +78,30 @@ public static function Parse($value) {
7878 return $ r ;
7979 }
8080
81+ /**
82+ * Determina si este componente tiene los valores predeterminados (0).
83+ *
84+ *
85+ * @return boolean
86+ * */
87+ public function IsDefault () {
88+ if ($ this ->IntValue == 0 ){
89+ if ($ this ->StringValue == '' ) {
90+ return true ;
91+ }
92+ }
93+
94+ return false ;
95+ }
96+
97+ /**
98+ * Determina si este componente NO tiene los valores predeterminados.
99+ *
100+ *
101+ * @return boolean
102+ * */
103+ public function IsNotDefault () {
104+ return !$ this ->IsDefault ();
105+ }
81106 }
82107}
You can’t perform that action at this time.
0 commit comments