ModuleNotFound   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getModulePath() 0 4 1
1
<?php
2
3
namespace Koriit\PHPDeps\Modules\Exceptions;
4
5
use Exception;
6
7
class ModuleNotFound extends Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $modulePath;
13
14
    public function __construct($modulePath, $cause = null)
15
    {
16
        parent::__construct('Module cannot be read or does not exist: ' . $modulePath, 0, $cause);
17
18
        $this->modulePath = $modulePath;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getModulePath()
25
    {
26
        return $this->modulePath;
27
    }
28
}
29