IConnectionComposable.php 582 B

1234567891011121314151617181920212223
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis\Network;
  11. use Predis\Protocol\IProtocolProcessor;
  12. interface IConnectionComposable extends IConnectionSingle
  13. {
  14. public function setProtocol(IProtocolProcessor $protocol);
  15. public function getProtocol();
  16. public function writeBytes($buffer);
  17. public function readBytes($length);
  18. public function readLine();
  19. }