1 | <?php |
||
21 | final class PathMappingState |
||
22 | { |
||
23 | /** |
||
24 | * State: The mapping is enabled. |
||
25 | */ |
||
26 | const ENABLED = 1; |
||
27 | |||
28 | /** |
||
29 | * State: The path referenced by the mapping was not found. |
||
30 | */ |
||
31 | const NOT_FOUND = 2; |
||
32 | |||
33 | /** |
||
34 | * State: The mapping conflicts with a mapping in another module. |
||
35 | */ |
||
36 | const CONFLICT = 3; |
||
37 | |||
38 | /** |
||
39 | * Returns all mapping states. |
||
40 | * |
||
41 | * @return int[] The mapping states. |
||
42 | */ |
||
43 | public static function all() |
||
44 | { |
||
45 | return array( |
||
46 | self::ENABLED, |
||
47 | self::NOT_FOUND, |
||
48 | self::CONFLICT, |
||
49 | ); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Must not be instantiated. |
||
54 | */ |
||
55 | private function __construct() |
||
58 | } |
||
59 |