files = $files; $this->environment = $environment; $this->options = $options; } public function getEnvironment(): Environment { return $this->environment; } /** @return string[] */ public function getFiles(): array { return $this->files; } /** @return string[] */ public function getOptions(): array { return $this->options; } public function getDepth(): int { if (isset($this->options['depth'])) { return (int) $this->options['depth']; } if (isset($this->options['maxdepth'])) { return (int) $this->options['maxdepth']; } return self::DEFAULT_DEPTH; } public function isTitlesOnly(): bool { return isset($this->options['titlesonly']); } }