linkCache = $linkCache; $this->titleFormatter = $titleFormatter; $this->contentLanguage = $contentLanguage; $this->genderCache = $genderCache; $this->dbProvider = $dbProvider; $this->linksMigration = $linksMigration; $this->logger = $logger; } /** * @param iterable|iterable $initialItems items to be added * * @return LinkBatch */ public function newLinkBatch( iterable $initialItems = [] ): LinkBatch { return new LinkBatch( $initialItems, $this->linkCache, $this->titleFormatter, $this->contentLanguage, $this->genderCache, $this->dbProvider, $this->linksMigration, $this->logger ); } }