Completed
Push — master ( a0d808...22db96 )
by Giancarlos
03:50
created

ValidationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 26/07/2017
6
 * Time: 23:10
7
 */
8
9
namespace Greenter\Xml\Exception;
10
11
use Symfony\Component\Validator\ConstraintViolationListInterface;
12
13
/**
14
 * Class ValidationException
15
 * @package Greenter\Xml\Exception
16
 */
17
class ValidationException extends \Exception
18
{
19
    /**
20
     * @var ConstraintViolationListInterface
21
     */
22
    public $validations;
23
24
    /**
25
     * ValidationException constructor.
26
     * @param ConstraintViolationListInterface $validations
27
     */
28 36
    public function __construct(ConstraintViolationListInterface $validations)
29
    {
30 36
        $this->validations = $validations;
31
    }
32
}