*/ /** * Transport that only accepts writes and ignores them. * This is useful for measuring the serialized size of structures. * * @package thrift.transport * @author David Reiss */ class TNullTransport extends TTransport { public function isOpen() { return true; } public function open() {} public function close() {} public function read($len) { throw new TTransportException("Can't read from TNullTransport."); } public function write($buf) {} } ?>