summaryrefslogtreecommitdiff
path: root/include/type.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 11:33:53 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-02 11:33:53 +0100
commit52fe0c39457421e075959179ee6b64a20b96f0d9 (patch)
treee6dd000114d104bf6286d74682feb694b3cb97a3 /include/type.h
parentfa02aa127d2c4261d15123829e44f6d997444abc (diff)
types are not a C++11 class, introduced FixedValue class that can not change type, and implemented both Object and Array to make use of that type, implemented - but not yet tested - Base::value() method
Diffstat (limited to 'include/type.h')
-rw-r--r--include/type.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/type.h b/include/type.h
index 717ae90..bec0fd5 100644
--- a/include/type.h
+++ b/include/type.h
@@ -17,19 +17,19 @@ namespace Php {
* Supported types for variables
* The values are the same as the ones used internally in Zend
*/
-typedef enum _Type {
- nullType = 0,
- numericType = 1,
- floatType = 2,
- boolType = 3,
- arrayType = 4,
- objectType = 5,
- stringType = 6,
- resourceType = 7,
- constantType = 8,
- constantArrayType = 9,
- callableType = 10
-} Type;
+enum class Type : unsigned char {
+ Null = 0,
+ Numeric = 1,
+ Float = 2,
+ Bool = 3,
+ Array = 4,
+ Object = 5,
+ String = 6,
+ Resource = 7,
+ Constant = 8,
+ ConstantArray = 9,
+ Callable = 10
+};
/**
* End of namespace