public function __construct($tempPath, $filesystem = null) { $this->tempPath = $tempPath; $this->filesystem = $filesystem ?: new Filesystem(); }