RequiredParameterException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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