public function translateBackup($type, array $conf)
    {
        /** @var \phpbu\App\Configuration\Backup $backup */
        $backup = $this->{$this->types[$type]}($conf);
        $backup->setTarget($this->translateTarget($conf['target']));

        $this->addChecksIfConfigured($backup, $conf);
        $this->addSyncIfConfigured($backup, $conf);
        $this->addCleanupIfConfigured($backup, $conf);
        $this->addCryptIfConfigured($backup, $conf);

        return $backup;
    }
public function translateBackup($type, array $conf)
    {
        /** @var \phpbu\App\Configuration\Backup $backup */
        $backup = $this->{$this->types[$type]}($conf);
        $backup->setTarget($this->translateTarget($conf['target']));

        $this->addChecksIfConfigured($backup, $conf);
        $this->addSyncIfConfigured($backup, $conf);
        $this->addCleanupIfConfigured($backup, $conf);
        $this->addCryptIfConfigured($backup, $conf);

        return $backup;
    }
public function translateBackup ( $ type , array $ conf ) { /** @var \phpbu\App\Configuration\Backup $backup */ $ backup = $ this -> { $ this -> types [ $ type ] } ( $ conf ) ; $ backup -> setTarget ( $ this -> translateTarget ( $ conf [ 'target' ] ) ) ; $ this -> addChecksIfConfigured ( $ backup , $ conf ) ; $ this -> addSyncIfConfigured ( $ backup , $ conf ) ; $ this -> addCleanupIfConfigured ( $ backup , $ conf ) ; $ this -> addCryptIfConfigured ( $ backup , $ conf ) ; return $ backup ; }
Translates a given laravel config type to a phpbu backup configuration.

@param  string $type
@param  array  $conf
@throws \phpbu\Laravel\Configuration\Exception
@return \phpbu\App\Configuration\Backup
Translates a given laravel config type to a phpbu backup configuration .