PropertyNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Proengsoft\JsValidation\Exceptions;
4
5
use Exception;
6
7
class PropertyNotFoundException extends Exception
8
{
9
    /**
10
     * Property Not Found Exception.
11
     *
12
     * @param string    $property
13
     * @param string    $caller
14
     * @param \Exception $previous
15
     */
16 12
    public function __construct($property = '', $caller = '', Exception $previous = null)
17
    {
18 12
        $message = "'$property' not found in '$caller'' object";
19 12
        parent::__construct($message, 0, $previous);
20 12
    }
21
}
22