index && $this->config->requiresIndexing()) { if (!file_exists($this->config->outputDir)) { mkdir($this->config->outputDir, 0755); } $this->attach($this->index); $this->reader->open($this->config->xmlFile); $this->execute($this->reader); $this->offsetUnset($this->index); } if ($this->format !== null) { $this->attach($this->format); } if (count($this) > 0) { $this->reader->open($this->config->xmlFile); $this->execute($this->reader); } } public function getIndex(): ?Index { return $this->index; } }