forked from CopernicaMarketingSoftware/PHP-CPP
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmodifiers.cpp
50 lines (46 loc) · 1.1 KB
/
modifiers.cpp
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
44
45
46
47
48
49
50
/**
* Modifiers.cpp
*
* In this file an enumeration type is with the possible
* member modifiers
*
* @author Martijn Otto <[email protected]>
* @author Emiel Bruijntjes <[email protected]>
*
* @copyright 2014 Copernica BV
*/
#include "includes.h"
#include <php.h>
/**
* Set up namespace
*/
namespace Php {
/**
* The modifiers are constants
*/
#if PHP_VERSION_ID >= 70400
const int Static = 0x10;
const int Abstract = 0x40;
const int Final = 0x20;
const int Public = 0x01;
const int Protected = 0x02;
const int Private = 0x04;
const int Const = 0;
#else
const int Static = 0x01;
const int Abstract = 0x02;
const int Final = 0x04;
const int Public = 0x100;
const int Protected = 0x200;
const int Private = 0x400;
const int Const = 0;
#endif
/**
* Modifiers that are supported for methods and properties
*/
const int MethodModifiers = Final | Public | Protected | Private | Static;
const int PropertyModifiers = Final | Public | Protected | Private | Const | Static;
/**
* End namespace
*/
}