for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace phpbu\App\Backup\Source;
use phpbu\App\Backup\Cli;
use phpbu\App\Backup\Target;
use phpbu\App\Result;
/**
* Executable Simulator class.
*
* @package phpbu
* @subpackage Backup
* @author Sebastian Feldmann <[email protected]>
* @copyright Sebastian Feldmann <[email protected]>
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
* @link http://phpbu.de/
* @since Class available since Release 3.0.0
*/
abstract class SimulatorExecutable extends Cli
{
* Simulate the backup execution.
* @param \phpbu\App\Backup\Target $target
* @param \phpbu\App\Result $result
* @return \phpbu\App\Backup\Source\Status
public function simulate(Target $target, Result $result)
$result->debug('backup data:' . PHP_EOL . $this->getExecutable($target)->getCommandLine());
return $this->createStatus($target);
}
* Create backup status.
* @param \phpbu\App\Backup\Target
abstract protected function createStatus(Target $target);