assertRequiredOptions( self::CONSTRUCTOR_OPTIONS ); $this->options = $options; $this->dbLoadBalancerFactory = $dbLoadBalancerFactory; $this->namespaceInfo = $namespaceInfo; $this->titleParser = $titleParser; $this->linkCache = $linkCache; $this->stats = $stats; } /** * @param string|false $wikiId * * @return PageStore */ public function getPageStore( $wikiId = WikiAwareEntity::LOCAL ): PageStore { return new PageStore( $this->options, $this->dbLoadBalancerFactory->getMainLB( $wikiId ), $this->namespaceInfo, $this->titleParser, $wikiId !== WikiAwareEntity::LOCAL ? null : $this->linkCache, $this->stats, $wikiId ); } }