public function __construct($trans)
 {
     if (!$trans instanceof IThriftBufferedTransport) {
         $trans = new TBufferedTransport($trans);
     }
     parent::__construct($trans);
 }
Exemplo n.º 2
0
 public function __construct($trans)
 {
     // If the transport doesn't implement putBack, wrap it in a
     // TBufferedTransport (which does)
     if (!method_exists($trans, 'putBack')) {
         $trans = new TBufferedTransport($trans);
     }
     parent::__construct($trans);
 }
 public function __construct($trans)
 {
     parent::__construct($trans);
 }