1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<?php
namespace Basho\Riak;
/**
* Interface ApiInterface
*
* Forces object structure for API bridge classes
*
* @author Christopher Mancini <cmancini at basho d0t com>
*/
interface ApiInterface
{
/**
* Prepares the API bridge for the command to be sent
*
* @param Command $command
* @param Node $node
*/
public function prepare(Command $command, Node $node);
/**
* Sends the command over the wire to Riak
*/
public function send();
/**
* Gets the complete request string
*
* @return string
*/
public function getRequest();
/**
* @return Command\Response|null
*/
public function getResponse();
/**
* Closes the connection to the Riak Interface
*
* @return null
*/
public function closeConnection();
}