Passed
Push — master ( d7d8c0...c26592 )
by Mads
03:35
created

ApiInternalCallValidationException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 38
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getInput() 0 3 1
A getErrors() 0 3 1
1
<?php
2
3
namespace Napp\Core\Api\Exceptions\Exceptions;
4
5
class ApiInternalCallValidationException extends \Exception
6
{
7
    /**
8
     * @var array
9
     */
10
    protected $input;
11
12
    /**
13
     * @var array
14
     */
15
    protected $errors;
16
17
    /**
18
     * @param array $input
19
     * @param array $errors
20
     */
21
    public function __construct(array $input, array $errors)
22
    {
23
        parent::__construct();
24
25
        $this->input = $input;
26
        $this->errors = $errors;
27
    }
28
29
    /**
30
     * @return array
31
     */
32
    public function getInput()
33
    {
34
        return $this->input;
35
    }
36
37
    /**
38
     * @return array
39
     */
40
    public function getErrors()
41
    {
42
        return $this->errors;
43
    }
44
}
45