ProviderNotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Thruster\Component\PacketHandler\Exception;
4
5
use Exception;
6
7
/**
8
 * Class ProviderNotFoundException
9
 *
10
 * @package Thruster\Component\PacketHandler\Exception
11
 * @author  Aurimas Niekis <[email protected]>
12
 */
13
class ProviderNotFoundException extends Exception
14
{
15
    /**
16
     * @inheritDoc
17
     */
18 1
    public function __construct($name)
19
    {
20 1
        $message = sprintf(
21 1
            'Provider "%s" not found',
22
            $name
23
        );
24
25 1
        parent::__construct($message);
26 1
    }
27
28
}
29