Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
ImpossiblePageMove
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getBlockers
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\PageTranslation;
5
6use Exception;
7use SplObjectStorage;
8
9/**
10 * Exception thrown when a translatable page move is not possible
11 * @author Abijeet Patro
12 * @license GPL-2.0-or-later
13 * @since 2021.09
14 */
15class ImpossiblePageMove extends Exception {
16    private SplObjectStorage $blockers;
17
18    public function __construct( SplObjectStorage $blockers ) {
19        parent::__construct();
20        $this->blockers = $blockers;
21    }
22
23    public function getBlockers(): SplObjectStorage {
24        return $this->blockers;
25    }
26}