public __construct ( |
||
$entityMapper | An instance of EntityMapper | |
$query | array | [optional] [Query](https://cloud.google.com/datastore/reference/rest/v1/projects/runQuery#query) |
public function __construct(EntityMapper $entityMapper, array $query = [])
{
$this->entityMapper = $entityMapper;
$this->query = $query + ['projection' => [], 'kind' => [], 'order' => [], 'distinctOn' => []];
}