/** * Simulates the backup. * * @param \phpbu\App\Backup\Source $source * @param \phpbu\App\Backup\Target $target * @param \phpbu\App\Result $result * @throws \phpbu\App\Exception */ protected function simulate(SourceExe $source, Target $target, Result $result) { if ($source instanceof Simulator) { $status = $source->simulate($target, $result); $this->compress($status, $target, $result); } }