Failed Conditions
Push — master ( ba8c0d...a9ded0 )
by thomas
04:50
created

SchemaValidationException::getErrors()   A

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
dl 0
loc 3
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BitWasp\Trezor\Bridge\Exception;
6
7
class SchemaValidationException extends BridgeException
8
{
9
    private $errors = [];
10
11
    public function __construct(
12
        array $errors,
13
        string $message = "",
14
        int $code = 0,
15
        \Throwable $previous = null
16
    ) {
17
        $this->errors = $errors;
18
        parent::__construct($message, $code, $previous);
19
    }
20
21
    public function getErrors(): array
22
    {
23
        return $this->errors;
24
    }
25
}
26