diff options
Diffstat (limited to 'include/type.h')
-rw-r--r-- | include/type.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/include/type.h b/include/type.h index 151919c..fbffb1f 100644 --- a/include/type.h +++ b/include/type.h @@ -18,17 +18,23 @@ namespace Php { * The values are the same as the ones used internally in Zend */ enum class PHPCPP_EXPORT Type : unsigned char { - Null = 0, // Null will allow any type - Numeric = 1, - Float = 2, - Bool = 3, - Array = 4, - Object = 5, - String = 6, - Resource = 7, - Constant = 8, - ConstantArray = 9, - Callable = 10 + Undefined = 0, // Variable is not set + Null = 1, // Null will allow any type + False = 2, // Boolean false + True = 3, // Boolean true + Numeric = 4, // Integer type + Float = 5, // Floating point type + String = 6, // A string obviously + Array = 7, // An array of things + Object = 8, // An object + Resource = 9, // A resource + Reference = 10, // Reference to another value (can be any type!) + Constant = 11, // A constant value + ConstantAST = 12, // I think an Abstract Syntax tree, not quite sure + + // "fake types", not quite sure what that means + Bool = 13, // You will never get this back as a type + Callable = 14, // I don't know why this is a "fake" type }; /** |