UnknownPropertyDefinitionException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 1 Features 1
Metric Value
wmc 1
c 3
b 1
f 1
lcom 0
cbo 0
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/**
3
 * This file is part of graze/array-filter
4
 *
5
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license https://github.com/graze/array-filter/blob/master/LICENSE.md
11
 * @link    https://github.com/graze/array-filter
12
 */
13
14
namespace Graze\ArrayFilter\Exception;
15
16
use Exception;
17
18
class UnknownPropertyDefinitionException extends Exception
19
{
20
    /**
21
     * UnknownPropertyDefinitionException constructor.
22
     *
23
     * @param string         $property
24
     * @param string         $message
25
     * @param Exception|null $previous
26
     */
27 8
    public function __construct($property, $message = '', Exception $previous = null)
28
    {
29 8
        $message = "Unknown property definition: $property. " . $message;
30
31 8
        parent::__construct($message, 0, $previous);
32 8
    }
33
}
34