RequiredParameterException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
cbo 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of bldr
5
 *
6
 * (c) Aaron Scherer <[email protected]>
7
 *
8
 * This source file is subject to the license that is bundled
9
 * with this source code in the file LICENSE
10
 */
11
12
namespace Bldr\Exception;
13
14
/**
15
 * @author Aaron Scherer <[email protected]>
16
 */
17
class RequiredParameterException extends BldrException
18
{
19
    /**
20
     * @param string $parameter
21
     */
22
    public function __construct($parameter)
23
    {
24
        parent::__construct("The required parameter, {$parameter}, is not set, and it is required.", 500);
25
    }
26
}
27