| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class ClassSelectQuery extends AbstractSelectQuery |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $entityConfig; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var SelectQueryHydrator |
||
| 19 | */ |
||
| 20 | private $hydrator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param Client $client |
||
| 24 | * @param Schema $schema |
||
| 25 | * @param string[] $entityConfig |
||
| 26 | * @param SelectQueryHydrator $hydrator |
||
| 27 | */ |
||
| 28 | public function __construct( |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param Result $result |
||
| 42 | * @return \object[] |
||
| 43 | */ |
||
| 44 | protected function transformResponse(Result $result) |
||
| 45 | { |
||
| 46 | $documentsArray = $result->getData()['response']['docs']; |
||
| 47 | |||
| 48 | return $this->hydrator->hydrate($documentsArray); |
||
| 49 | } |
||
| 50 | |||
| 51 | protected function initDiscriminatorConditions() |
||
| 58 | ); |
||
| 59 | } |
||
| 61 | } |