Passed
Push — master ( 02bea5...62dfbf )
by Rutger
03:04
created

EnvironmentVariableNotSetException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 7
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
1
<?php
2
3
namespace rhertogh\Yii2Oauth2Server\helpers\exceptions;
4
5
class EnvironmentVariableNotSetException extends BaseEnvironmentVariableException
6
{
7
    public function __construct($variable, $message = null, $code = 0, \Throwable $previous = null) {
8
        if ($message === null) {
9
            $message = 'The environment variable "' . $variable . '" is not defined.';
10
        }
11
        parent::__construct($variable, $message, $code, $previous);
12
    }
13
}
14