Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
18 | class FieldExecutionContext |
||
19 | { |
||
20 | /** |
||
21 | * @var QueryExecutionContext |
||
22 | */ |
||
23 | private $queryContext; |
||
24 | |||
25 | /** |
||
26 | * @var FieldsAwareDefinitionInterface |
||
27 | */ |
||
28 | private $definition; |
||
29 | |||
30 | /** |
||
31 | * FieldExecutionContext constructor. |
||
32 | * |
||
33 | * @param QueryExecutionContext $queryContext |
||
34 | * @param FieldsAwareDefinitionInterface $definition |
||
35 | */ |
||
36 | 2 | public function __construct(QueryExecutionContext $queryContext, FieldsAwareDefinitionInterface $definition) |
|
40 | 2 | } |
|
41 | |||
42 | /** |
||
43 | * @return QueryExecutionContext |
||
44 | */ |
||
45 | 2 | public function getQueryContext(): QueryExecutionContext |
|
46 | { |
||
47 | 2 | return $this->queryContext; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return FieldsAwareDefinitionInterface |
||
52 | */ |
||
53 | public function getDefinition(): FieldsAwareDefinitionInterface |
||
56 | } |
||
57 | } |
||
58 |