2020-08-31 01:27:08 +08:00
|
|
|
<?php
|
2020-10-29 18:17:25 +08:00
|
|
|
declare(strict_types=1);
|
2020-08-31 01:27:08 +08:00
|
|
|
/**
|
|
|
|
|
* Created by PhpStorm.
|
|
|
|
|
* User: whwyy
|
|
|
|
|
* Date: 2018/4/8 0008
|
|
|
|
|
* Time: 17:29
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace HttpServer\IInterface;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface IFormatter
|
2021-08-11 01:04:57 +08:00
|
|
|
* @package Kiri\Kiri\Http\Formatter
|
2020-08-31 01:27:08 +08:00
|
|
|
*/
|
|
|
|
|
interface IFormatter
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param $context
|
|
|
|
|
* @return static
|
|
|
|
|
*/
|
2020-12-14 15:34:59 +08:00
|
|
|
public function send($context): static;
|
2020-08-31 01:27:08 +08:00
|
|
|
|
|
|
|
|
|
2020-12-14 15:34:59 +08:00
|
|
|
/**
|
|
|
|
|
* @return mixed
|
|
|
|
|
*/
|
|
|
|
|
public function getData(): mixed;
|
|
|
|
|
|
|
|
|
|
public function clear(): void;
|
2020-08-31 01:27:08 +08:00
|
|
|
}
|