baseIdentifier = (new Typo3Version())->getVersion() . Environment::getProjectPath() . ($packageManager->getCacheIdentifier() ?? ''); } public function toString(): string { return $this->prefix . hash('xxh3', $this->baseIdentifier . $this->additionalIdentifier); } public function withPrefix(string $prefix): self { $newIdentifier = clone $this; $newIdentifier->prefix = $prefix . '_'; return $newIdentifier; } public function withAdditionalHashedIdentifier(string $additionalIdentifier): self { $newIdentifier = clone $this; $newIdentifier->additionalIdentifier = $additionalIdentifier; return $newIdentifier; } }