Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace AutoModerator\Config\Validation;
4
5use StatusValue;
6
7interface IConfigValidator {
8    /**
9     * Validate passed config
10     *
11     * This is executed by ConfigHooks for manual edits and by
12     * WikiPageConfigLoader before returning the config
13     * (this is to ensure invalid config is never used).
14     *
15     * @param array $config Associative array representing config that's going to be validated
16     * @return StatusValue
17     */
18    public function validate( array $config ): StatusValue;
19
20    /**
21     * If the configuration page assigned to this validator does not exist, return this
22     *
23     * Useful for ie. structured mentor list, which requires the Mentors key
24     * to be present.
25     *
26     * @return array
27     */
28    public function getDefaultContent(): array;
29}