Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| InvalidNotificationTitleException | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
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 | |
| 19 | public function __construct( private string $title ) { |
| 20 | parent::__construct(); |
| 21 | } |
| 22 | |
| 23 | public function getTitle(): string { |
| 24 | return $this->title; |
| 25 | } |
| 26 | } |