src/Cornford/Backup/BackupFactory.php
public function build(
		array $options = [],
		$database = null
	) {
		$backupEngine = $this->buildBackupEngine($options);
		$backupFilesystem = $this->buildBackupFilesystem();

		return $this->buildBackup($backupEngine, $backupFilesystem, $options, $database);
	}
public function build(
		array $options = [],
		$database = null
	) {
		$backupEngine = $this->buildBackupEngine($options);
		$backupFilesystem = $this->buildBackupFilesystem();

		return $this->buildBackup($backupEngine, $backupFilesystem, $options, $database);
	}
public function build ( array $ options = [ ] , $ database = null ) { $ backupEngine = $ this -> buildBackupEngine ( $ options ) ; $ backupFilesystem = $ this -> buildBackupFilesystem ( ) ; return $ this -> buildBackup ( $ backupEngine , $ backupFilesystem , $ options , $ database ) ; }
Build a new Backup object and its dependencies.

@param array  $options
@param string $database

@return \Cornford\Backup\Contracts\BackupInterface
Build a new Backup object and its dependencies .