Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 81.82% |
Changes | 0 |
1 | <?php |
||
20 | class QueryExecutionContext |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $queryId; |
||
26 | |||
27 | /** |
||
28 | * @var Endpoint |
||
29 | */ |
||
30 | protected $endpoint; |
||
31 | |||
32 | /** |
||
33 | * @var ExecutableDefinitionInterface |
||
34 | */ |
||
35 | protected $definition; |
||
36 | |||
37 | /** |
||
38 | * QueryExecutionContext constructor. |
||
39 | * |
||
40 | * @param Endpoint $endpoint |
||
41 | * @param ExecutableDefinitionInterface $definition |
||
42 | */ |
||
43 | 3 | public function __construct(Endpoint $endpoint, ExecutableDefinitionInterface $definition = null) |
|
48 | 3 | } |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 2 | public function getQueryId(): string |
|
54 | { |
||
55 | 2 | return $this->queryId; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return Endpoint |
||
60 | */ |
||
61 | 1 | public function getEndpoint(): Endpoint |
|
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return ExecutableDefinitionInterface |
||
68 | */ |
||
69 | public function getDefinition(): ExecutableDefinitionInterface |
||
72 | } |
||
73 | } |
||
74 |