Completed
Pull Request — master (#3)
by Tim
10:21
created

DisplayModeKeys   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 41
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __clone() 0 3 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Category\Utils\DisplayModeKeys
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-category
18
 * @link      http://www.techdivision.com
19
 */
20
21
namespace TechDivision\Import\Category\Utils;
22
23
/**
24
 * Utility class containing the available display mode 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-category
30
 * @link      http://www.techdivision.com
31
 */
32
class DisplayModeKeys
33
{
34
35
    /**
36
     * Key for 'Products only'.
37
     *
38
     * @var integer
39
     */
40
    const DISPLAY_MODE_PRODUCTS_ONLY = 'PRODUCTS';
41
42
    /**
43
     * Key for 'Static block only'.
44
     *
45
     * @var integer
46
     */
47
    const DISPLAY_MODE_STATIC_BLOCK_ONLY = 'PAGE';
48
49
    /**
50
     * Key for 'Static block and products'.
51
     *
52
     * @var integer
53
     */
54
    const DISPLAY_MODE_BOTH = 'PRODUCTS_AND_PAGE';
55
56
    /**
57
     * This is a utility class, so protect it against direct
58
     * instantiation.
59
     */
60
    private function __construct()
61
    {
62
    }
63
64
    /**
65
     * This is a utility class, so protect it against cloning.
66
     *
67
     * @return void
68
     */
69
    private function __clone()
70
    {
71
    }
72
}
73