InvalidConfigurationException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A urlNotDefined() 0 4 1
A clientNotDefined() 0 4 1
1
<?php
2
3
namespace ArjanWestdorp\Imaginary\Exceptions;
4
5
use Exception;
6
7
class InvalidConfigurationException extends Exception
8
{
9
    /**
10
     * Url not defined.
11
     *
12
     * @return static
13
     */
14 2
    public static function urlNotDefined()
15
    {
16 2
        return new static('Url is not defined in the config.');
17
    }
18
19
    /**
20
     * Client not defined.
21
     *
22
     * @return static
23
     */
24 1
    public static function clientNotDefined()
25
    {
26 1
        return new static('Client is not defined in the config.');
27
    }
28
}