summaryrefslogtreecommitdiff
path: root/include/type.h
blob: 151919c6c1f22a803c58b208d90c8efe18d85010 (plain)
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
/**
 *  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 {
    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
};

/**
 *  End of namespace
 */
}