factory = $factory; $this->repositoryQuery = $repositoryQuery; $this->store = $store; } public function getFactory(): NewsFactory { return $this->factory; } public function getRepositoryQuery(): NewsRepositoryQuery { return $this->repositoryQuery; } public function getStore(): NewsStore { return $this->store; } }