Permalink
Browse files

Added Enum and DateTime types

  • Loading branch information...
1 parent 6b107f2 commit 60b3ba4013e0938e480f2ed78317ee47af7e61c8 @brunnels committed Feb 13, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/Validator.php
View
8 src/Validator.php
@@ -222,6 +222,14 @@ private static function validateTypeName($type)
case "anytype":
return 'Array';
break;
+
+ case "enum":
+ return 'Enum';
+ break;
+
+ case "datetime":
+ return 'DateTime';
+ break;
default:
$validType = self::applyPrefixAndSuffix(self::validateNamingConvention($type));

0 comments on commit 60b3ba4

Please sign in to comment.