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