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 GraphQL\Executor\ExecutionResult; |
||
8 | use Symfony\Contracts\EventDispatcher\Event; |
||
9 | |||
10 | // TODO(mcg-web): remove hack after migrating Symfony >= 4.3 |
||
11 | 1 | if (EventDispatcherVersionHelper::isForLegacy()) { |
|
12 | final class ExecutorResultEvent extends \Symfony\Component\EventDispatcher\Event |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
13 | { |
||
14 | /** @var ExecutionResult */ |
||
15 | private $result; |
||
16 | |||
17 | public function __construct(ExecutionResult $result) |
||
18 | { |
||
19 | $this->result = $result; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return ExecutionResult |
||
24 | */ |
||
25 | public function getResult(): ExecutionResult |
||
26 | { |
||
27 | return $this->result; |
||
28 | } |
||
29 | } |
||
30 | } else { |
||
31 | final class ExecutorResultEvent extends Event |
||
32 | { |
||
33 | /** @var ExecutionResult */ |
||
34 | private $result; |
||
35 | |||
36 | 83 | public function __construct(ExecutionResult $result) |
|
37 | { |
||
38 | 83 | $this->result = $result; |
|
39 | 83 | } |
|
40 | |||
41 | /** |
||
42 | * @return ExecutionResult |
||
43 | */ |
||
44 | 83 | public function getResult(): ExecutionResult |
|
45 | { |
||
46 | 83 | return $this->result; |
|
47 | } |
||
48 | } |
||
49 | } |
||
50 |