Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 6f78dc...d7c2e2 )
by Jérémiah
21s queued 11s
created

InvalidArgumentError::getErrors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Error;
6
7
use Exception;
8
use GraphQL\Error\UserError as GraphQLUserError;
9
use Symfony\Component\Validator\ConstraintViolationListInterface;
10
11
class InvalidArgumentError extends GraphQLUserError
12
{
13
    private string $name;
14
    private ConstraintViolationListInterface $errors;
15
16 3
    public function __construct(
17
        string $name,
18
        ConstraintViolationListInterface $errors,
19
        string $message = '',
20
        int $code = 0,
21
        Exception $previous = null
22
    ) {
23 3
        $this->name = $name;
24 3
        $this->errors = $errors;
25 3
        parent::__construct($message, $code, $previous);
26 3
    }
27
28 3
    public function getName(): string
29
    {
30 3
        return $this->name;
31
    }
32
33 3
    public function getErrors(): ConstraintViolationListInterface
34
    {
35 3
        return $this->errors;
36
    }
37
}
38