We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
17 | class UserErrors extends UserFacingError |
||
18 | { |
||
19 | /** |
||
20 | * @var UserError[] |
||
21 | */ |
||
22 | private $errors = []; |
||
23 | |||
24 | 1 | public function __construct(array $errors, $message = '', $code = 0, \Exception $previous = null) |
|
29 | |||
30 | /** |
||
31 | * @param UserError[]|string[] $errors |
||
32 | */ |
||
33 | 1 | public function setErrors(array $errors) |
|
34 | { |
||
35 | 1 | foreach ($errors as $error) { |
|
36 | 1 | $this->addError($error); |
|
37 | } |
||
38 | 1 | } |
|
39 | |||
40 | /** |
||
41 | * @param string|UserError $error |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | 1 | public function addError($error) |
|
57 | |||
58 | /** |
||
59 | * @return UserError[] |
||
60 | */ |
||
61 | 1 | public function getErrors() |
|
65 | } |
||
66 |