3 namespace Tests\Exports;
7 public function __construct(
8 public string $zipPath,
9 public string $extractedDirPath,
15 * Build a path to a location the extracted content, using the given relative $path.
17 public function extractPath(string $path): string
19 $relPath = implode(DIRECTORY_SEPARATOR, explode('/', $path));
20 return $this->extractedDirPath . DIRECTORY_SEPARATOR . ltrim($relPath, DIRECTORY_SEPARATOR);