package; } public function getRelativePath(): string { return $this->relativePath; } /** * @throws InvalidSystemResourceIdentifierException */ public function withRelativePath(string $newPath): self { return new self( $this->package, $newPath, $this->givenIdentifier, ); } public function __toString() { return sprintf( '%s:%s:%s', self::TYPE, $this->package->getValueFromComposerManifest('name') ?? $this->package->getPackageKey(), $this->relativePath, ); } }