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

ApiInternalCallValidationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 6
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
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