Completed
Push — master ( ccf0eb...14b48b )
by Anton
10s
created

ValidatorFormException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getErrors() 0 4 1
A setErrors() 0 4 1
1
<?php
2
/**
3
 * Bluz Framework Component
4
 *
5
 * @copyright Bluz PHP Team
6
 * @link      https://github.com/bluzphp/framework
7
 */
8
9
declare(strict_types=1);
10
11
namespace Bluz\Validator\Exception;
12
13
/**
14
 * Validator Exception
15
 *
16
 * @package  Bluz\Validator\Exception
17
 * @author   Anton Shevchuk
18
 */
19
class ValidatorFormException extends ValidatorException
20
{
21
    /**
22
     * @var array of error's messages
23
     */
24
    protected $errors;
25
26
    /**
27
     * @return array
28
     */
29 2
    public function getErrors(): array
30
    {
31 2
        return $this->errors;
32
    }
33
34
    /**
35
     * @param array $errors
36
     */
37 3
    public function setErrors(array $errors)
38
    {
39 3
        $this->errors = $errors;
40 3
    }
41
}
42