Completed
Push — master ( 1f44ff...9311e4 )
by Emily
02:16
created

MissingRequiredParameterException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 6
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * This file is part of the Composite Utils package.
4
 *
5
 * (c) Emily Shepherd <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the
8
 * LICENSE.md file that was distributed with this source code.
9
 *
10
 * @package spaark/composite-utils
11
 * @author Emily Shepherd <emily@emilyshepherd>
12
 * @license MIT
13
 */
14
15
namespace Spaark\CompositeUtils\Exception;
16
17
class MissingRequiredParameterException extends \Exception
18
{
19 2
    public function __construct($class, $property, $previous = null)
20
    {
21 2
        parent::__construct
22
        (
23
              'Missing required parameter in constructor. '
24 2
            . $class . ' requires a value for ' . $property,
25 2
            0,
26
            $previous
27
        );
28 2
    }
29
}
30