1 | <?php |
||
16 | class ConstraintsServices { |
||
17 | |||
18 | const LOGGING_HELPER = 'WBQC_LoggingHelper'; |
||
19 | const CONSTRAINT_REPOSITORY = 'WBQC_ConstraintRepository'; |
||
20 | const CONSTRAINT_LOOKUP = 'WBQC_ConstraintLookup'; |
||
21 | const CHECK_RESULT_SERIALIZER = 'WBQC_CheckResultSerializer'; |
||
22 | const CHECK_RESULT_DESERIALIZER = 'WBQC_CheckResultDeserializer'; |
||
23 | const VIOLATION_MESSAGE_SERIALIZER = 'WBQC_ViolationMessageSerializer'; |
||
24 | const VIOLATION_MESSAGE_DESERIALIZER = 'WBQC_ViolationMessageDeserializer'; |
||
25 | const CONSTRAINT_PARAMETER_PARSER = 'WBQC_ConstraintParameterParser'; |
||
26 | |||
27 | private static function getService( MediaWikiServices $services = null, $name ) { |
||
33 | |||
34 | /** |
||
35 | * @param MediaWikiServices|null $services |
||
36 | * @return LoggingHelper |
||
37 | */ |
||
38 | public static function getLoggingHelper( MediaWikiServices $services = null ) { |
||
41 | |||
42 | /** |
||
43 | * @param MediaWikiServices|null $services |
||
44 | * @return ConstraintRepository |
||
45 | */ |
||
46 | public static function getConstraintRepository( MediaWikiServices $services = null ) { |
||
49 | |||
50 | /** |
||
51 | * @param MediaWikiServices|null $services |
||
52 | * @return ConstraintLookup |
||
53 | */ |
||
54 | public static function getConstraintLookup( MediaWikiServices $services = null ) { |
||
57 | |||
58 | /** |
||
59 | * @param MediaWikiServices|null $services |
||
60 | * @return CheckResultSerializer |
||
61 | */ |
||
62 | public static function getCheckResultSerializer( MediaWikiServices $services = null ) { |
||
65 | |||
66 | /** |
||
67 | * @param MediaWikiServices|null $services |
||
68 | * @return CheckResultDeserializer |
||
69 | */ |
||
70 | public static function getCheckResultDeserializer( MediaWikiServices $services = null ) { |
||
73 | |||
74 | /** |
||
75 | * @param MediaWikiServices|null $services |
||
76 | * @return ViolationMessageSerializer |
||
77 | */ |
||
78 | public static function getViolationMessageSerializer( MediaWikiServices $services = null ) { |
||
81 | |||
82 | /** |
||
83 | * @param MediaWikiServices|null $services |
||
84 | * @return ViolationMessageDeserializer |
||
85 | */ |
||
86 | public static function getViolationMessageDeserializer( MediaWikiServices $services = null ) { |
||
89 | |||
90 | /** |
||
91 | * @param MediaWikiServices|null $services |
||
92 | * @return ConstraintParameterParser |
||
93 | */ |
||
94 | public static function getConstraintParameterParser( MediaWikiServices $services = null ) { |
||
97 | |||
98 | } |
||
99 |