BindingTypeState   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A all() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the puli/manager package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Puli\Manager\Api\Discovery;
13
14
/**
15
 * Contains constants representing the state of a binding type.
16
 *
17
 * @since  1.0
18
 *
19
 * @author Bernhard Schussek <[email protected]>
20
 */
21
final class BindingTypeState
22
{
23
    /**
24
     * State: The type is enabled.
25
     */
26
    const ENABLED = 1;
27
28
    /**
29
     * State: The binding is disabled because it was defined twice or more.
30
     */
31
    const DUPLICATE = 2;
32
33
    /**
34
     * Returns all states.
35
     *
36
     * @return int[] The states.
37
     */
38
    public static function all()
39
    {
40
        return array(
41
            self::ENABLED,
42
            self::DUPLICATE,
43
        );
44
    }
45
46
    /**
47
     * Must not be instantiated.
48
     */
49
    private function __construct()
50
    {
51
    }
52
}
53