MagentoConfigurationKeys   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 69
rs 10
c 0
b 0
f 0
ccs 0
cts 6
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __clone() 0 3 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Command\MagentoConfigurationKeys
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/techdivision/import-cli-magento
18
 * @link      http://www.techdivision.com
19
 */
20
21
namespace TechDivision\Import\Command;
22
23
/**
24
 * Utility class containing the necessary Magento configuration 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/techdivision/import-cli-magento
30
 * @link      http://www.techdivision.com
31
 */
32
class MagentoConfigurationKeys
33
{
34
35
    /**
36
     * This is a utility class, so protect it against direct
37
     * instantiation.
38
     */
39
    private function __construct()
40
    {
41
    }
42
43
    /**
44
     * This is a utility class, so protect it against cloning.
45
     *
46
     * @return void
47
     */
48
    private function __clone()
49
    {
50
    }
51
52
    /**
53
     * The key for the DB environment in the app/etc/env.php file.
54
     *
55
     * @var string
56
     */
57
    const DB = 'db';
58
59
    /**
60
     * The key for the DB connection in the app/etc/env.php file.
61
     *
62
     * @var string
63
     */
64
    const CONNECTION = 'connection';
65
66
    /**
67
     * The key for the DB host in the app/etc/env.php file.
68
     *
69
     * @var string
70
     */
71
    const HOST = 'host';
72
73
    /**
74
     * The key for the DB name in the app/etc/env.php file.
75
     *
76
     * @var string
77
     */
78
    const DBNAME = 'dbname';
79
80
    /**
81
     * The key for the DB username in the app/etc/env.php file.
82
     *
83
     * @var string
84
     */
85
    const USERNAME = 'username';
86
87
    /**
88
     * The key for the DB password in the app/etc/env.php file.
89
     *
90
     * @var string
91
     */
92
    const PASSWORD = 'password';
93
94
    /**
95
     * The attribute with the Magento Edition name in the composer.json file.
96
     *
97
     * @var string
98
     */
99
    const COMPOSER_EDITION_NAME_ATTRIBUTE = 'name';
100
}
101