mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
28 lines
497 B
PHP
28 lines
497 B
PHP
<?php
|
||
|
||
namespace OSS\Model;
|
||
|
||
/**
|
||
* Interface XmlConfig
|
||
* @package OSS\Model
|
||
*/
|
||
interface XmlConfig
|
||
{
|
||
|
||
/**
|
||
* 接口定义,实现此接口的类都需要实现从xml数据解析的函数
|
||
*
|
||
* @param string $strXml
|
||
* @return null
|
||
*/
|
||
public function parseFromXml($strXml);
|
||
|
||
/**
|
||
* 接口定义,实现此接口的类,都需要实现把子类序列化成xml字符串的接口
|
||
*
|
||
* @return string
|
||
*/
|
||
public function serializeToXml();
|
||
|
||
}
|