Completed
Pull Request — master (#71)
by Arnaud
15:22 queued 12:55
created

ConfigurationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace LAG\AdminBundle\Action\Configuration;
4
5
use Exception;
6
use LAG\AdminBundle\Admin\AdminInterface;
7
8
class ConfigurationException extends Exception
9
{
10 1
    public function __construct($message, $actionName, AdminInterface $admin)
11
    {
12 1
        $message .= sprintf(
13 1
            ', for Admin %s and action %s',
14 1
            $admin->getName(),
15
            $actionName
16
        );
17
18 1
        parent::__construct($message);
19 1
    }
20
}
21