manifests[$name] = $manifest; if ($isDefault) { $this->defaultManifest = $name; } } public function registerManifest( string $name, string $path, string $baseUrl, string $parserClass = JsonManifestParser::class, bool $isDefault = false, ): void { $this->addManifest( $name, new Manifest($path, $baseUrl, $parserClass), $isDefault ); } public function getManifests(): array { return $this->manifests; } public function getManifest(string $name): Manifest { return $this->getManifests()[$name]; } public function getDefaultManifest(): Manifest { return $this->getManifest($this->defaultManifest); } }