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 — 0.13 ( ff6287...cab464 )
by Jérémiah
16s queued 11s
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 1
{
12
    /** @var ExtensibleSchema */
13
    private $schema;
14
15
    /** @var string */
16
    private $requestString;
17
18
    /** @var mixed */
19
    private $rootValue;
20
21
    /** @var \ArrayObject */
22
    private $contextValue;
23
24
    /** @var array|null */
25
    private $variableValue;
26
27
    /** @var string|null */
28
    private $operationName;
29
30
    public static function create(
31
            ExtensibleSchema $schema,
32
            $requestString,
33
            \ArrayObject $contextValue,
34
            $rootValue = null,
35
            array $variableValue = null,
36
            $operationName = null
37
        ) {
38
        $instance = new static();
39
        $instance->setSchema($schema);
40
        $instance->setRequestString($requestString);
41
        $instance->setContextValue($contextValue);
42
        $instance->setRootValue($rootValue);
43
        $instance->setVariableValue($variableValue);
44
        $instance->setOperationName($operationName);
45
46
        return $instance;
47
    }
48
49
    /**
50
     * @param string|null $operationName
51
     */
52
    public function setOperationName($operationName = null): void
53
    {
54
        $this->operationName = $operationName;
55
    }
56
57
    public function setContextValue(\ArrayObject $contextValue = null): void
58
    {
59
        $this->contextValue = $contextValue;
60
    }
61
62
    /**
63
     * @param mixed $rootValue
64
     */
65
    public function setRootValue($rootValue = null): void
66
    {
67
        $this->rootValue = $rootValue;
68
    }
69
70
    /**
71
     * @param string $requestString
72
     */
73
    public function setRequestString($requestString): void
74
    {
75
        $this->requestString = $requestString;
76
    }
77
78
    public function setVariableValue(array $variableValue = null): void
79
    {
80
        $this->variableValue = $variableValue;
81
    }
82
83
    public function setSchema(ExtensibleSchema $schema): void
84
    {
85
        $this->schema = $schema;
86
    }
87
88
    /**
89
     * @return ExtensibleSchema
90
     */
91
    public function getSchema(): ExtensibleSchema
92
    {
93
        return $this->schema;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getRequestString(): string
100
    {
101
        return $this->requestString;
102
    }
103
104
    /**
105
     * @return array|null
106
     */
107
    public function getRootValue()
108
    {
109
        return $this->rootValue;
110
    }
111
112
    /**
113
     * @return \ArrayObject
114
     */
115
    public function getContextValue(): \ArrayObject
116
    {
117
        return $this->contextValue;
118
    }
119
120
    /**
121
     * @return array|null
122
     */
123
    public function getVariableValue()
124
    {
125
        return $this->variableValue;
126
    }
127
128
    /**
129
     * @return string|null
130
     */
131
    public function getOperationName()
132
    {
133
        return $this->operationName;
134
    }
135
}
136