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 Flow\SpamFilter;
4
5use Flow\Model\AbstractRevision;
6use MediaWiki\Context\IContextSource;
7use MediaWiki\Status\Status;
8use MediaWiki\Title\Title;
9
10interface SpamFilter {
11    /**
12     * @param IContextSource $context
13     * @param AbstractRevision $newRevision
14     * @param AbstractRevision|null $oldRevision
15     * @param Title $title
16     * @param Title $ownerTitle
17     * @return Status
18     */
19    public function validate(
20        IContextSource $context,
21        AbstractRevision $newRevision,
22        ?AbstractRevision $oldRevision,
23        Title $title,
24        Title $ownerTitle
25    );
26
27    /**
28     * @return bool
29     */
30    public function enabled();
31}