diff --git a/src/CMDL/DataTypeDefinition.php b/src/CMDL/DataTypeDefinition.php
index <HASH>..<HASH> 100644
--- a/src/CMDL/DataTypeDefinition.php
+++ b/src/CMDL/DataTypeDefinition.php
@@ -193,17 +193,6 @@ class DataTypeDefinition
     }
 
 
-    public function hasLanguages()
-    {
-        if ($this->languages == null or count($this->languages) < 2)
-        {
-            return false;
-        }
-
-        return true;
-    }
-
-
     public function setLanguages(array $languages)
     {
         $this->languages = $languages;
@@ -216,6 +205,17 @@ class DataTypeDefinition
     }
 
 
+    public function hasLanguages()
+    {
+        if ($this->languages == null or count($this->languages) < 2)
+        {
+            return false;
+        }
+
+        return true;
+    }
+
+
     public function setWorkspaces($workspaces)
     {
         $this->workspaces = $workspaces;
@@ -227,4 +227,15 @@ class DataTypeDefinition
         return $this->workspaces;
     }
 
+
+    public function hasWorkspaces()
+    {
+        if ($this->workspaces == null or count($this->workspaces) < 2)
+        {
+            return false;
+        }
+
+        return true;
+    }
+
 }
\ No newline at end of file
added missing method hasWorkspaces to DataTypeDefinition