FormKeys   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 45
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __clone() 0 2 1
A __construct() 0 2 1
1
<?php
2
3
/**
4
 * AppserverIo\Authenticator\Utils\FormKeys
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    Tim Wagner <[email protected]>
15
 * @copyright 2016 TechDivision GmbH <[email protected]>
16
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
 * @link      https://github.com/appserver-io/authenticator
18
 * @link      http://www.appserver.io
19
 */
20
21
namespace AppserverIo\Authenticator\Utils;
22
23
/**
24
 * Utility class that contains the form keys.
25
 *
26
 * @author    Tim Wagner <[email protected]>
27
 * @copyright 2016 TechDivision GmbH <[email protected]>
28
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29
 * @link      https://github.com/appserver-io/authenticator
30
 * @link      http://www.appserver.io
31
 */
32
class FormKeys
33
{
34
35
    /**
36
     * The key for the username specified in the login form.
37
     *
38
     * @var string
39
     */
40
    const USERNAME = 'p_username';
41
42
    /**
43
     * The key for the password specified in the login in the form.
44
     *
45
     * @var string
46
     */
47
    const PASSWORD = 'p_password';
48
49
    /**
50
     * The key for the authorization code specified in the login in the form.
51
     *
52
     * @var string
53
     */
54
    const CODE = 'code';
55
56
    /**
57
     * The key for a login form name.
58
     *
59
     * @var string
60
     */
61
    const FORM_ACTION = 'p_security_check';
62
63
    /**
64
     * This is a utility class, so protect it against direct instantiation.
65
     */
66
    private function __construct()
67
    {
68
    }
69
70
    /**
71
     * This is a utility class, so protect it against cloning.
72
     *
73
     * @return void
74
     */
75
    private function __clone()
76
    {
77
    }
78
}
79