ModuleNotFound::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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