1 | <?php |
||
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() |
||
52 | } |
||
53 |