We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Overblog\GraphQLBundle\Event; |
||
6 | |||
7 | use Symfony\Contracts\EventDispatcher\Event; |
||
8 | |||
9 | // TODO(mcg-web): remove hack after migrating Symfony >= 4.3 |
||
10 | 1 | if (EventDispatcherVersionHelper::isForLegacy()) { |
|
11 | final class ExecutorContextEvent extends \Symfony\Component\EventDispatcher\Event |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
12 | { |
||
13 | /** @var \ArrayObject */ |
||
14 | private $executorContext; |
||
15 | |||
16 | /** |
||
17 | * @param \ArrayObject $executorContext |
||
18 | */ |
||
19 | public function __construct(\ArrayObject $executorContext) |
||
20 | { |
||
21 | $this->executorContext = $executorContext; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return \ArrayObject |
||
26 | */ |
||
27 | public function getExecutorContext(): \ArrayObject |
||
28 | { |
||
29 | return $this->executorContext; |
||
30 | } |
||
31 | } |
||
32 | } else { |
||
33 | final class ExecutorContextEvent extends Event |
||
34 | { |
||
35 | /** @var \ArrayObject */ |
||
36 | private $executorContext; |
||
37 | |||
38 | /** |
||
39 | * @param \ArrayObject $executorContext |
||
40 | */ |
||
41 | 85 | public function __construct(\ArrayObject $executorContext) |
|
42 | { |
||
43 | 85 | $this->executorContext = $executorContext; |
|
44 | 85 | } |
|
45 | |||
46 | /** |
||
47 | * @return \ArrayObject |
||
48 | */ |
||
49 | 45 | public function getExecutorContext(): \ArrayObject |
|
50 | { |
||
51 | 45 | return $this->executorContext; |
|
52 | } |
||
53 | } |
||
54 | } |
||
55 |