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 (#602)
by
unknown
21:16 queued 14s
created

ExecutorArgumentsEvent::setOperationName()   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 1
crap 1
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
    /** @var string|null */
31
    private $operationName;
32
33 103
    public static function create(
34
            string $schemaName,
35
            ExtensibleSchema $schema,
36
            $requestString,
37
            \ArrayObject $contextValue,
38
            $rootValue = null,
39
            array $variableValue = null,
40
            $operationName = null
41
        ) {
42 103
        $instance = new static();
43 103
        $instance->setSchemaName($schemaName);
44 103
        $instance->setSchema($schema);
45 103
        $instance->setRequestString($requestString);
46 103
        $instance->setContextValue($contextValue);
47 103
        $instance->setRootValue($rootValue);
48 103
        $instance->setVariableValue($variableValue);
49 103
        $instance->setOperationName($operationName);
50
51 103
        return $instance;
52
    }
53
54
    /**
55
     * @param string|null $operationName
56
     */
57 103
    public function setOperationName($operationName = null): void
58
    {
59 103
        $this->operationName = $operationName;
60 103
    }
61
62 103
    public function setContextValue(\ArrayObject $contextValue = null): void
63
    {
64 103
        $this->contextValue = $contextValue;
65 103
    }
66
67
    /**
68
     * @param mixed $rootValue
69
     */
70 103
    public function setRootValue($rootValue = null): void
71
    {
72 103
        $this->rootValue = $rootValue;
73 103
    }
74
75
    /**
76
     * @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
    public function getSchemaName()
92
    {
93
        return $this->schemaName;
94
    }
95
96 103
    public function setSchemaName(string $schemaName)
97
    {
98 103
        $this->schemaName = $schemaName;
99 103
    }
100
101 103
    public function setSchema(ExtensibleSchema $schema): void
102
    {
103 103
        $this->schema = $schema;
104 103
    }
105
106
    /**
107
     * @return ExtensibleSchema
108
     */
109 103
    public function getSchema(): ExtensibleSchema
110
    {
111 103
        return $this->schema;
112
    }
113
114
    /**
115
     * @return string
116
     */
117 103
    public function getRequestString(): string
118
    {
119 103
        return $this->requestString;
120
    }
121
122
    /**
123
     * @return array|null
124
     */
125 103
    public function getRootValue()
126
    {
127 103
        return $this->rootValue;
128
    }
129
130
    /**
131
     * @return \ArrayObject
132
     */
133 103
    public function getContextValue(): \ArrayObject
134
    {
135 103
        return $this->contextValue;
136
    }
137
138
    /**
139
     * @return array|null
140
     */
141 103
    public function getVariableValue()
142
    {
143 103
        return $this->variableValue;
144
    }
145
146
    /**
147
     * @return string|null
148
     */
149 103
    public function getOperationName()
150
    {
151 103
        return $this->operationName;
152
    }
153
}
154