ModuleException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * For the full copyright and license information, please view the LICENSE.md
4
 * file that was distributed with this source code.
5
 */
6
7
namespace Notamedia\ConsoleJedi\Module\Exception;
8
9
class ModuleException extends \RuntimeException
10
{
11
    /**
12
     * ModuleException constructor.
13
     *
14
     * @param string $message
15
     * @param int $moduleName
16
     * @param \Exception|null $previous
17
     */
18
    public function __construct($message, $moduleName, \Exception $previous = null)
19
    {
20
        parent::__construct("[$moduleName] " . $message, 0, $previous);
21
    }
22
}