EnvVars   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 97
ccs 0
cts 5
cp 0
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 5 1
1
<?php
2
3
/**
4
 * \AppserverIo\Server\Dictionaries\EnvVars
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Bernhard Wick <[email protected]>
15
 * @author    Johann Zelger <[email protected]>
16
 * @copyright 2015 TechDivision GmbH <[email protected]>
17
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
18
 * @link      https://github.com/appserver-io/server
19
 * @link      http://www.appserver.io
20
 */
21
22
namespace AppserverIo\Server\Dictionaries;
23
24
/**
25
 * Class EnvVars
26
 *
27
 * @author    Bernhard Wick <[email protected]>
28
 * @author    Johann Zelger <[email protected]>
29
 * @copyright 2015 TechDivision GmbH <[email protected]>
30
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
31
 * @link      https://github.com/appserver-io/server
32
 * @link      http://www.appserver.io
33
 */
34
class EnvVars
35
{
36
    /**
37
     * Returns all entries of that dictionary
38
     *
39
     * @return array
40
     */
41
    public static function all()
42
    {
43
        $refl = new \ReflectionClass(__CLASS__);
44
        return $refl->getConstants();
45
    }
46
47
    /**
48
     * Defines constant for HTTPS usage
49
     *
50
     * @var string
51
     */
52
    const HTTPS = 'HTTPS';
53
54
    /**
55
     * Defines constants for SSL cipher
56
     *
57
     * @var string
58
     */
59
    const SSL_CIPHER = 'SSL_CIPHER';
60
    const SSL_CIPHER_EXPORT = 'SSL_CIPHER_EXPORT';
61
    const SSL_CIPHER_USEKEYSIZE = 'SSL_CIPHER_USEKEYSIZE';
62
    const SSL_CIPHER_ALGKEYSIZE = 'SSL_CIPHER_ALGKEYSIZE';
63
64
    /**
65
     * Defines several other constants
66
     *
67
     * @var string
68
     */
69
    const SSL_COMPRESS_METHOD = 'SSL_COMPRESS_METHOD';
70
    const SSL_TLS_SNI = 'SSL_TLS_SNI';
71
    const SSL_PROTOCOL = 'SSL_PROTOCOL';
72
    const SSL_SESSION_ID = 'SSL_SESSION_ID';
73
74
    /**
75
     * Defines interface versions (mod_ssl and OpenSSL)
76
     *
77
     * @var string
78
     */
79
    const SSL_VERSION_INTERFACE = 'SSL_VERSION_INTERFACE';
80
    const SSL_VERSION_LIBRARY = 'SSL_VERSION_LIBRARY';
81
82
    /**
83
     * Defines client side constants
84
     *
85
     * Some constants have been uppercased to fit PSR-2!
86
     *
87
     * @var string
88
     */
89
    const SSL_CLIENT_M_VERSION = 'SSL_CLIENT_M_VERSION';
90
    const SSL_CLIENT_M_SERIAL = 'SSL_CLIENT_M_SERIAL';
91
    const SSL_CLIENT_S_DN = 'SSL_CLIENT_S_DN';
92
    const SSL_CLIENT_S_DN_X509 = 'SSL_CLIENT_S_DN_x509';
93
    const SSL_CLIENT_I_DN = 'SSL_CLIENT_I_DN';
94
    const SSL_CLIENT_I_DN_X509 = 'SSL_CLIENT_I_DN_x509';
95
    const SSL_CLIENT_V_START = 'SSL_CLIENT_V_START';
96
    const SSL_CLIENT_V_END = 'SSL_CLIENT_V_END';
97
    const SSL_CLIENT_V_REMAIN = 'SSL_CLIENT_V_REMAIN';
98
    const SSL_CLIENT_A_SIG = 'SSL_CLIENT_A_SIG';
99
    const SSL_CLIENT_A_KEY = 'SSL_CLIENT_A_KEY';
100
    const SSL_CLIENT_CERT = 'SSL_CLIENT_CERT';
101
    const SSL_CLIENT_CERT_CHAIN_N = 'SSL_CLIENT_CERT_CHAIN_n';
102
    const SSL_CLIENT_VERIFY = 'SSL_CLIENT_VERIFY';
103
104
    /**
105
     * Defines server side constants
106
     *
107
     * Some constants have been uppercased to fit PSR-2!
108
     *
109
     * @var string
110
     */
111
    const SSL_SERVER_M_VERSION = 'SSL_SERVER_M_VERSION';
112
    const SSL_SERVER_M_SERIAL = 'SSL_SERVER_M_SERIAL';
113
    const SSL_SERVER_S_DN = 'SSL_SERVER_S_DN';
114
    const SSL_SERVER_S_DN_X509 = 'SSL_SERVER_S_DN_x509';
115
    const SSL_SERVER_I_DN = 'SSL_SERVER_I_DN';
116
    const SSL_SERVER_I_DN_X509 = 'SSL_SERVER_I_DN_x509';
117
    const SSL_SERVER_V_START = 'SSL_SERVER_V_START';
118
    const SSL_SERVER_V_END = 'SSL_SERVER_V_END';
119
    const SSL_SERVER_A_SIG = 'SSL_SERVER_A_SIG';
120
    const SSL_SERVER_A_KEY = 'SSL_SERVER_A_KEY';
121
    const SSL_SERVER_CERT = 'SSL_SERVER_CERT';
122
123
    /**
124
     * Defines logger constants
125
     *
126
     * @var string
127
     */
128
    const LOGGER_SYSTEM = 'LOGGER_SYSTEM';
129
    const LOGGER_ACCESS = 'LOGGER_ACCESS';
130
}
131