Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 21 |
GeneralSearcherServiceClient | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 3 |
__construct | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 3 |
|||
GeneralSearcherServiceProcessor | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 18 |
__construct | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
process | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 16 |
<?php | |
namespace OpenSearch\Generated\GeneralSearcher; | |
/** | |
* Autogenerated by Thrift Compiler (0.10.0) | |
* | |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | |
* @generated | |
*/ | |
use Thrift\Base\TBase; | |
use Thrift\Type\TType; | |
use Thrift\Type\TMessageType; | |
use Thrift\Exception\TException; | |
use Thrift\Exception\TProtocolException; | |
use Thrift\Protocol\TProtocol; | |
use Thrift\Protocol\TBinaryProtocolAccelerated; | |
use Thrift\Exception\TApplicationException; | |
interface GeneralSearcherServiceIf { | |
} | |
class GeneralSearcherServiceClient implements \OpenSearch\Generated\GeneralSearcher\GeneralSearcherServiceIf { | |
protected $input_ = null; | |
protected $output_ = null; | |
protected $seqid_ = 0; | |
public function __construct($input, $output=null) { | |
$this->input_ = $input; | |
$this->output_ = $output ? $output : $input; | |
} | |
} | |
// HELPER FUNCTIONS AND STRUCTURES | |
class GeneralSearcherServiceProcessor { | |
protected $handler_ = null; | |
public function __construct($handler) { | |
$this->handler_ = $handler; | |
} | |
public function process($input, $output) { | |
$rseqid = 0; | |
$fname = null; | |
$mtype = 0; | |
$input->readMessageBegin($fname, $mtype, $rseqid); | |
$methodname = 'process_'.$fname; | |
if (!method_exists($this, $methodname)) { | |
$input->skip(TType::STRUCT); | |
$input->readMessageEnd(); | |
$x = new TApplicationException('Function '.$fname.' not implemented.', TApplicationException::UNKNOWN_METHOD); | |
$output->writeMessageBegin($fname, TMessageType::EXCEPTION, $rseqid); | |
$x->write($output); | |
$output->writeMessageEnd(); | |
$output->getTransport()->flush(); | |
return; | |
} | |
$this->$methodname($rseqid, $input, $output); | |
return true; | |
} | |
} | |