Completed
Push — master ( 0be1c7...fd0431 )
by WEBEWEB
02:02
created

PHPExtensionNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2017 NdC/WBW
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Core\Exception\Extension\PHP;
13
14
use Exception;
15
use WBW\Library\Core\Exception\AbstractWBWException;
16
17
/**
18
 * PHP extension not found exception.
19
 *
20
 * @author NdC/WBW <https://github.com/webeweb/>
21
 * @package WBW\Library\Core\Exception\Extension\PHP
22
 * @final
23
 */
24
final class PHPExtensionNotFoundException extends AbstractWBWException {
25
26
	/**
27
	 * Constructor.
28
	 *
29
	 * @param string $extension The extension.
30
	 * @param Exception $previous The previous exception.
31
	 */
32
	public function __construct($extension, Exception $previous = null) {
33
		parent::__construct("The PHP extension \"" . $extension . "\" is not found", $previous);
34
	}
35
36
}
37