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

Passed
Pull Request — master (#801)
by Vincent
23:54
created

Builder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Annotation;
6
7
use \Attribute;
8
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
9
10
/**
11
 * Annotation for GraphQL builders
12
 *
13
 * @Annotation
14
 * @Target({"PROPERTY", "METHOD"})
15
 */
16
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_METHOD)]
17
abstract class Builder extends Annotation implements NamedArgumentConstructorAnnotation
18
{
19
    /**
20
     * Builder name.
21
     *
22
     * @Required
23
     * 
24
     * @var string
25
     */
26
    public string $value;
27
28
    /**
29
     * The builder config.
30
     *
31
     * @var array
32
     */
33
    public array $config = [];
34
35
    public function __construct(string $value, array $config = [])
36
    {
37
        $this->value = $value;
38
        $this->config = $config;
39
    }
40
}
41