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

29 lines
719 B
PHP
Raw Normal View History

2023-09-18 09:11:13 +08:00
<?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);
}