Files
zhamao-framework/src/ZM/Context/ContextInterface.php

38 lines
652 B
PHP
Raw Normal View History

2020-04-15 10:55:10 +08:00
<?php
namespace ZM\Context;
2020-04-26 15:08:09 +08:00
use Swoole\Http\Request;
use Swoole\WebSocket\Frame;
use Swoole\WebSocket\Server;
use ZM\Http\Response;
use ZM\Utils\ZMRobot;
2020-04-26 15:08:09 +08:00
2020-04-15 10:55:10 +08:00
interface ContextInterface
{
public function __construct($param, $cid);
2020-04-26 15:08:09 +08:00
/** @return Server */
2020-04-15 10:55:10 +08:00
public function getServer();
2020-04-26 15:08:09 +08:00
/** @return Frame */
2020-04-15 10:55:10 +08:00
public function getFrame();
2020-04-26 15:08:09 +08:00
/** @return mixed */
2020-04-15 10:55:10 +08:00
public function getData();
2020-04-26 15:08:09 +08:00
/** @return int */
2020-04-15 10:55:10 +08:00
public function getCid();
2020-04-26 15:08:09 +08:00
/** @return Response */
2020-04-15 10:55:10 +08:00
public function getResponse();
2020-04-26 15:08:09 +08:00
/** @return Request */
2020-04-15 10:55:10 +08:00
public function getRequest();
/** @return ZMRobot */
public function getRobot();
2020-04-15 10:55:10 +08:00
}