Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class PassInvalidException extends \RuntimeException |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $errors; |
||
14 | |||
15 | /** |
||
16 | * Construct a PassInvalidException either with or without an array of errors. |
||
17 | * |
||
18 | * @param string $message |
||
19 | * @param string[]|null $errors |
||
20 | */ |
||
21 | 4 | public function __construct($message = '', array $errors = null) |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Returns the errors with the pass. |
||
29 | * |
||
30 | * @return string[] |
||
31 | */ |
||
32 | 3 | public function getErrors() |
|
37 |