Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
InvalidNotificationTitleException | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
getTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare( strict_types=1 ); |
4 | |
5 | namespace ContentTranslation\Exception; |
6 | |
7 | use Exception; |
8 | |
9 | /** |
10 | * Represents an exception thrown when the title of a draft translation for which a notification |
11 | * is being sent to its translator, is invalid |
12 | * |
13 | * @author Nik Gkountas |
14 | * @license GPL-2.0-or-later |
15 | * @since 2023.11 |
16 | */ |
17 | class InvalidNotificationTitleException extends Exception { |
18 | private string $title; |
19 | |
20 | public function __construct( string $title ) { |
21 | parent::__construct(); |
22 | $this->title = $title; |
23 | } |
24 | |
25 | public function getTitle(): string { |
26 | return $this->title; |
27 | } |
28 | } |