public function getPreset($application, $version, array $options = null)
    {
        $presets = [];
        foreach ($this->presets as $preset) {
            if ($preset['application'] === $application
                && $this->matchVersion($version, $preset)
                && $this->matchOptions($options, $preset)
            ) {
                $presets[] = $preset['backup'];
            }
        }

        if (0 === count($presets)) {
            return [];
        }
        if (1 === count($presets)) {
            return $presets[0];
        }

        return call_user_func_array('array_merge', $presets);
    }
public function getPreset($application, $version, array $options = null)
    {
        $presets = [];
        foreach ($this->presets as $preset) {
            if ($preset['application'] === $application
                && $this->matchVersion($version, $preset)
                && $this->matchOptions($options, $preset)
            ) {
                $presets[] = $preset['backup'];
            }
        }

        if (0 === count($presets)) {
            return [];
        }
        if (1 === count($presets)) {
            return $presets[0];
        }

        return call_user_func_array('array_merge', $presets);
    }
public function getPreset ( $ application , $ version , array $ options = null ) { $ presets = [ ] ; foreach ( $ this -> presets as $ preset ) { if ( $ preset [ 'application' ] === $ application && $ this -> matchVersion ( $ version , $ preset ) && $ this -> matchOptions ( $ options , $ preset ) ) { $ presets [ ] = $ preset [ 'backup' ] ; } } if ( 0 === count ( $ presets ) ) { return [ ] ; } if ( 1 === count ( $ presets ) ) { return $ presets [ 0 ] ; } return call_user_func_array ( 'array_merge' , $ presets ) ; }
Returns preset for given application and version.

@param $application
@param $version
@param array $options

@return array
Returns preset for given application and version .