We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class InvalidArgumentsError extends GraphQLUserError |
||
| 11 | { |
||
| 12 | /** @var InvalidArgumentError[] */ |
||
| 13 | private array $errors; |
||
| 14 | |||
| 15 | 3 | public function __construct( |
|
| 16 | array $errors, |
||
| 17 | string $message = '', |
||
| 18 | int $code = 0, |
||
| 19 | Exception $previous = null |
||
| 20 | ) { |
||
| 21 | 3 | $this->errors = $errors; |
|
| 22 | 3 | parent::__construct($message, $code, $previous); |
|
| 23 | 3 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return InvalidArgumentError[] |
||
| 27 | */ |
||
| 28 | 3 | public function getErrors(): array |
|
| 29 | { |
||
| 30 | 3 | return $this->errors; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Return a serializable array of validation errors for each argument. |
||
| 35 | */ |
||
| 36 | 3 | public function toState(): array |
|
| 51 | } |
||
| 52 | } |
||
| 53 |