1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/**
* Type.h
*
* In this file an enumeration type is defined with all supported variable
* types.
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2013 Copernica BV
*/
/**
* Set up namespace
*/
namespace Php {
/**
* Supported types for variables
* The values are the same as the ones used internally in Zend
*/
enum class PHPCPP_EXPORT Type : unsigned char {
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
};
/**
* End of namespace
*/
}
|