diff options
Diffstat (limited to 'include/type.h')
-rw-r--r-- | include/type.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/type.h b/include/type.h new file mode 100644 index 0000000..f3e357f --- /dev/null +++ b/include/type.h @@ -0,0 +1,38 @@ +/** + * Type.h + * + * In this file an enumeration type is defined with all supporteded variable + * types. + * + * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> + * @copyright 2013 Copernica BV + */ + +/** + * Set up namespace + */ +namespace PhpCpp { + +/** + * Supported types for variables + * The values are the same as the ones used internally in Zend + */ +typedef enum _Type { + nullType = 0, + intType = 1, + decimalType = 2, + boolType = 3, + arrayType = 4, + objectType = 5, + stringType = 6, + resourceType = 7, + constantType = 8, + constantArrayType = 9, + callableType = 10 +} Type; + +/** + * End of namespace + */ +} + |