ConfigValidationException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getValidationResult() 0 3 1
1
<?php
2
3
namespace Weew\ConfigSchema\Exceptions;
4
5
use Exception;
6
use Weew\Validator\IValidationResult;
7
8
class ConfigValidationException extends Exception {
9
    /**
10
     * @var IValidationResult
11
     */
12
    protected $validationResult;
13
14
    /**
15
     * ConfigValidationException constructor.
16
     *
17
     * @param string $message
18
     * @param IValidationResult $validationResult
19
     */
20
    public function __construct($message, IValidationResult $validationResult) {
21
        parent::__construct($message);
22
        
23
        $this->validationResult = $validationResult;
24
    }
25
26
    /**
27
     * @return IValidationResult
28
     */
29
    public function getValidationResult() {
30
        return $this->validationResult;
31
    }
32
}
33