factory = $factory; $this->repositoryQuery = $repositoryQuery; $this->store = $store; } public function getFactory(): DocumentFactory { return $this->factory; } public function getRepositoryQuery(): DocumentRepositoryQuery { return $this->repositoryQuery; } public function getStore(): DocumentStore { $this->store->resetContext(); return $this->store; } }