Completed
Pull Request — master (#71)
by Arnaud
02:54 queued 40s
created

ConfigurationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 10
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 6
nc 1
nop 3
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
    public function __construct($message, $actionName, AdminInterface $admin)
11
    {
12
        $message .= sprintf(
13
            ', for Admin %s and action %s',
14
            $admin->getName(),
15
            $actionName
16
        );
17
18
        parent::__construct($message);
19
    }
20
}
21