Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Licence_Key_Not_Set_Exception | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BrianHenryIE\WP_Plugin_Updater\Exception; |
| 4 | |
| 5 | use Throwable; |
| 6 | |
| 7 | class Licence_Key_Not_Set_Exception extends Plugin_Updater_Exception_Abstract { |
| 8 | |
| 9 | const MESSAGE = 'The licence key has not been set.'; |
| 10 | |
| 11 | public function __construct( string $message = self::MESSAGE, int $code = 0, ?Throwable $previous = null ) { |
| 12 | |
| 13 | if ( self::MESSAGE === $message ) { |
| 14 | $message = __( 'The licence key has not been set.', 'bh-wp-plugin-updater' ); |
| 15 | } |
| 16 | |
| 17 | parent::__construct( $message, $code, $previous ); |
| 18 | } |
| 19 | } |