FormValidationException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 16
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getErrors() 0 4 1
1
<?php
2
3
/**
4
 * @package     Dashboard
5
 * @author      Ian Olson <[email protected]>
6
 * @license     MIT
7
 * @copyright   2015, Laraflock
8
 * @link        https://github.com/laraflock
9
 */
10
11
namespace Laraflock\Dashboard\Exceptions;
12
13
use Exception;
14
15
class FormValidationException extends Exception
16
{
17
    protected $errors;
18
19 17
    public function __construct($message = '', $errors = [])
20
    {
21 17
        $this->errors = $errors;
22
23 17
        parent::__construct($message);
24 17
    }
25
26 11
    public function getErrors()
27
    {
28 11
        return $this->errors;
29
    }
30
}