ConfigurationException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * Puzzle\Exceptions\ConfigurationException
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to version 3 of the GPL license,
9
 * that is bundled with this package in the file LICENSE, and is
10
 * available online at http://www.gnu.org/licenses/gpl.txt
11
 *
12
 * PHP version 5
13
 *
14
 * @category  Puzzle
15
 * @package   Puzzle
16
 * @author    Philipp Dittert <[email protected]>
17
 * @copyright 2015 Philipp Dittert
18
 * @license   http://www.gnu.org/licenses/gpl.txt GNU General Public License, version 3 (GPL-3.0)
19
 * @link      https://github.com/dittertp/Puzzle
20
 */
21
22
namespace Puzzle\Exceptions;
23
24
/**
25
 * class ConfigurationException
26
 *
27
 * @category  Puzzle
28
 * @package   Puzzle
29
 * @author    Philipp Dittert <[email protected]>
30
 * @copyright 2015 Philipp Dittert
31
 * @license   http://www.gnu.org/licenses/gpl.txt GNU General Public License, version 3 (GPL-3.0)
32
 * @link      https://github.com/dittertp/Puzzle
33
 */
34
35
class ConfigurationException extends \Exception
36
{
37
    /**
38
     * creates class instance
39
     *
40
     * @param string $message the message
41
     */
42 1
    public function __construct($message = 'Not Found')
43
    {
44 1
        parent::__construct($message, 404);
45 1
    }
46
}
47