NotAvailableException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 2
c 3
b 1
f 1
lcom 0
cbo 0
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createForReporter() 0 4 1
A createForPackage() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of expect package.
5
 *
6
 * (c) Noritaka Horio <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
namespace expect\config;
12
13
use RuntimeException;
14
15
class NotAvailableException extends RuntimeException
16
{
17
    public static function createForReporter($interface)
18
    {
19
        return new self("Reporter is not available.\nBecause it is because do not implement the {$interface}.");
20
    }
21
22
    public static function createForPackage($interface)
23
    {
24
        return new self("Package is not available.\nBecause it is because do not implement the {$interface}.");
25
    }
26
}
27