Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
HistoryFilter
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getHistoryID
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace MediaWiki\Extension\AbuseFilter\Filter;
4
5/**
6 * Variant of ExistingFilters for past versions of filters
7 */
8class HistoryFilter extends ExistingFilter {
9    /** @var int */
10    private $historyID;
11
12    /**
13     * @param Specs $specs
14     * @param Flags $flags
15     * @param array[]|callable():array[] $actions Array with params or callable that will return them
16     * @param LastEditInfo $lastEditInfo
17     * @param int $id
18     * @param int $historyID
19     */
20    public function __construct(
21        Specs $specs,
22        Flags $flags,
23        $actions,
24        LastEditInfo $lastEditInfo,
25        int $id,
26        int $historyID
27    ) {
28        parent::__construct( $specs, $flags, $actions, $lastEditInfo, $id );
29        $this->historyID = $historyID;
30    }
31
32    public function getHistoryID(): int {
33        return $this->historyID;
34    }
35}