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
Pull Request — master (#602)
by
unknown
23:58
created

ExecutorArgumentsEvent::setRootValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Event;
6
7
use Overblog\GraphQLBundle\Definition\Type\ExtensibleSchema;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
final class ExecutorArgumentsEvent extends Event
11
{
12
    /** @var string */
13
    private $schemaName;
14
15
    /** @var ExtensibleSchema */
16
    private $schema;
17
18
    /** @var string */
19
    private $requestString;
20
21
    /** @var mixed */
22
    private $rootValue;
23
24
    /** @var \ArrayObject */
25
    private $contextValue;
26
27
    /** @var array|null */
28
    private $variableValue;
29
30 103
    /** @var string|null */
31
    private $operationName;
32
33
    public static function create(
34
            string $schemaName,
35
            ExtensibleSchema $schema,
36
            $requestString,
37
            \ArrayObject $contextValue,
38 103
            $rootValue = null,
39 103
            array $variableValue = null,
40 103
            $operationName = null
41 103
        ) {
42 103
        $instance = new static();
43 103
        $instance->setSchemaName($schemaName);
44 103
        $instance->setSchema($schema);
45
        $instance->setRequestString($requestString);
46 103
        $instance->setContextValue($contextValue);
47
        $instance->setRootValue($rootValue);
48
        $instance->setVariableValue($variableValue);
49
        $instance->setOperationName($operationName);
50
51
        return $instance;
52 103
    }
53
54 103
    /**
55 103
     * @param string|null $operationName
56
     */
57 103
    public function setOperationName($operationName = null): void
58
    {
59 103
        $this->operationName = $operationName;
60 103
    }
61
62
    public function setContextValue(\ArrayObject $contextValue = null): void
63
    {
64
        $this->contextValue = $contextValue;
65 103
    }
66
67 103
    /**
68 103
     * @param mixed $rootValue
69
     */
70
    public function setRootValue($rootValue = null): void
71
    {
72
        $this->rootValue = $rootValue;
73 103
    }
74
75 103
    /**
76 103
     * @param string $requestString
77
     */
78 103
    public function setRequestString($requestString): void
79
    {
80 103
        $this->requestString = $requestString;
81 103
    }
82
83 103
    public function setVariableValue(array $variableValue = null): void
84
    {
85 103
        $this->variableValue = $variableValue;
86 103
    }
87
88
    /**
89
     * @return string
90
     */
91 103
    public function getSchemaName()
92
    {
93 103
        return $this->schemaName;
94
    }
95
96
    public function setSchemaName(string $schemaName)
97
    {
98
        $this->schemaName = $schemaName;
99 103
    }
100
101 103
    public function setSchema(ExtensibleSchema $schema): void
102
    {
103
        $this->schema = $schema;
104
    }
105
106
    /**
107 103
     * @return ExtensibleSchema
108
     */
109 103
    public function getSchema(): ExtensibleSchema
110
    {
111
        return $this->schema;
112
    }
113
114
    /**
115 103
     * @return string
116
     */
117 103
    public function getRequestString(): string
118
    {
119
        return $this->requestString;
120
    }
121
122
    /**
123 103
     * @return array|null
124
     */
125 103
    public function getRootValue()
126
    {
127
        return $this->rootValue;
128
    }
129
130
    /**
131 103
     * @return \ArrayObject
132
     */
133 103
    public function getContextValue(): \ArrayObject
134
    {
135
        return $this->contextValue;
136
    }
137
138
    /**
139
     * @return array|null
140
     */
141
    public function getVariableValue()
142
    {
143
        return $this->variableValue;
144
    }
145
146
    /**
147
     * @return string|null
148
     */
149
    public function getOperationName()
150
    {
151
        return $this->operationName;
152
    }
153
}
154