Commit 4491d6e0 authored by tufengqi's avatar tufengqi

完成底层异步框架

parent 9f18ca35
<?php <?php
namespace fpf\thrift; namespace fpf\thrift;
use Thrift\Type\TMessageType;
class ThriftAsyncDetailInstanse class ThriftAsyncDetailInstanse
{ {
private $protocol = null; private $protocol = null;
private $promise = null; private $promise = null;
private $class_name = ''; private $class_name = '';
private $func_name = ''; private $func_name = '';
public function ___construct($protocol, $promise, $class_name, $func_name) public function __construct($promise, $protocol, $class_name, $func_name)
{ {
$this->protocol = $protocol;
$this->promise = $promise; $this->promise = $promise;
$this->protocol = $protocol;
$this->class_name = $class_name; $this->class_name = $class_name;
$this->func_name = $func_name; $this->func_name = $func_name;
} }
public function getProtocol()
{
return $this->protocol;
}
public function getPromise()
{
return $this->promise;
}
public function wait() public function wait()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment