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 (#638)
by Vincent
21:48
created

ExecutorArgumentsEvent::getRequestString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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