public function __construct(EntityMapper $entityMapper, array $query = []) { $this->entityMapper = $entityMapper; $this->query = $query + ['projection' => [], 'kind' => [], 'order' => [], 'distinctOn' => []]; }