RuleClassFileNotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * This file is part of PHP Mess Detector.
4
 *
5
 * Copyright (c) Manuel Pichler <[email protected]>.
6
 * All rights reserved.
7
 *
8
 * Licensed under BSD License
9
 * For full copyright and license information, please see the LICENSE file.
10
 * Redistributions of files must retain the above copyright notice.
11
 *
12
 * @author Manuel Pichler <[email protected]>
13
 * @copyright Manuel Pichler. All rights reserved.
14
 * @license https://opensource.org/licenses/bsd-license.php BSD License
15
 * @link http://phpmd.org/
16
 */
17
18
namespace PHPMD\Exception;
19
20
/**
21
 * This type of exception is thrown when the class file for a configured rule
22
 * does not exist within php's include path.
23
 */
24
class RuleClassFileNotFoundException extends \RuntimeException
25
{
26
    /**
27
     * Constructs a new class file not found exception.
28
     *
29
     * @param string $className The rule class name.
30
     */
31 1
    public function __construct($className)
32
    {
33 1
        parent::__construct('Cannot load source file for class: ' . $className);
34 1
    }
35
}
36