protected function addCleanupIfConfigured(Configuration\Backup $backup, array $conf)
    {
        if (isset($conf['cleanup'])) {
            $backup->setCleanup(
                new Configuration\Backup\Cleanup(
                    $conf['cleanup']['type'],
                    false,
                    $conf['cleanup']['options']
                )
            );
        }
    }
protected function addCleanupIfConfigured(Configuration\Backup $backup, array $conf)
    {
        if (isset($conf['cleanup'])) {
            $backup->setCleanup(
                new Configuration\Backup\Cleanup(
                    $conf['cleanup']['type'],
                    false,
                    $conf['cleanup']['options']
                )
            );
        }
    }
protected function addCleanupIfConfigured ( Configuration \ Backup $ backup , array $ conf ) { if ( isset ( $ conf [ 'cleanup' ] ) ) { $ backup -> setCleanup ( new Configuration \ Backup \ Cleanup ( $ conf [ 'cleanup' ] [ 'type' ] , false , $ conf [ 'cleanup' ] [ 'options' ] ) ) ; } }
Adds a cleanup configuration to the given backup configuration.

@param \phpbu\App\Configuration\Backup $backup
@param array                           $conf
Adds a cleanup configuration to the given backup configuration .