data_center/vendor/clagiordano/weblibs-configmanager/src/IConvertable.php

29 lines
719 B
PHP

<?php
namespace clagiordano\weblibs\configmanager;
/**
* Class FileConverter
* @package clagiordano\weblibs\configmanager
*/
interface IConvertable
{
/**
* Converts source config to target config format
*
* @param IConfigurable $source
* @param IConfigurable $target
* @return IConfigurable
*/
public static function convert(IConfigurable $source, IConfigurable $target);
/**
* Converts source config to target config format and save it on target config file
*
* @param IConfigurable $source
* @param IConfigurable $target
* @return IConfigurable
*/
public static function convertAndSave(IConfigurable $source, IConfigurable $target);
}