Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
InvalidToolURLException | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getExpectedBaseURL | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare( strict_types=1 ); |
4 | |
5 | namespace MediaWiki\Extension\CampaignEvents\TrackingTool; |
6 | |
7 | use Exception; |
8 | |
9 | class InvalidToolURLException extends Exception { |
10 | private string $baseURL; |
11 | |
12 | /** |
13 | * @param string $baseURL |
14 | * @param string $message |
15 | */ |
16 | public function __construct( string $baseURL, string $message ) { |
17 | parent::__construct( $message ); |
18 | $this->baseURL = $baseURL; |
19 | } |
20 | |
21 | /** |
22 | * @return string |
23 | */ |
24 | public function getExpectedBaseURL(): string { |
25 | return $this->baseURL; |
26 | } |
27 | } |