diff options
Diffstat (limited to 'vendor/packaged/thrift/src/Server/TServerTransport.php')
-rw-r--r-- | vendor/packaged/thrift/src/Server/TServerTransport.php | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/vendor/packaged/thrift/src/Server/TServerTransport.php b/vendor/packaged/thrift/src/Server/TServerTransport.php deleted file mode 100644 index 15a27afa8..000000000 --- a/vendor/packaged/thrift/src/Server/TServerTransport.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php - -namespace Thrift\Server; - -use Thrift\Exception\TTransportException; - -/** - * Generic class for Server agent. - * - * @package thrift.transport - */ -abstract class TServerTransport -{ - /** - * List for new clients - * - * @abstract - * @return void - */ - abstract public function listen(); - - /** - * Close the server - * - * @abstract - * @return void - */ - abstract public function close(); - - /** - * Subclasses should use this to implement - * accept. - * - * @abstract - * @return TTransport - */ - abstract protected function acceptImpl(); - - /** - * Uses the accept implemtation. If null is returned, an - * exception is thrown. - * - * @throws TTransportException - * @return TTransport - */ - public function accept() - { - $transport = $this->acceptImpl(); - - if ($transport == null) { - throw new TTransportException("accept() may not return NULL"); - } - - return $transport; - } -} |