ApiInternalCallValidationException::getInput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Napp\Core\Api\Exceptions\Exceptions;
4
5
/**
6
 * Class ApiInternalCallValidationException.
7
 */
8
class ApiInternalCallValidationException extends \Exception
9
{
10
    /**
11
     * @var array
12
     */
13
    protected $input;
14
15
    /**
16
     * @var array
17
     */
18
    protected $errors;
19
20
    /**
21
     * @param array $input
22
     * @param array $errors
23
     */
24
    public function __construct(array $input, array $errors)
25
    {
26
        parent::__construct();
27
28
        $this->input = $input;
29
        $this->errors = $errors;
30
    }
31
32
    /**
33
     * @return array
34
     */
35
    public function getInput()
36
    {
37
        return $this->input;
38
    }
39
40
    /**
41
     * @return array
42
     */
43
    public function getErrors()
44
    {
45
        return $this->errors;
46
    }
47
}
48