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: 47: 48: 49: 50: 51: 52: 53:
<?php
/**
* Request Interface
*/
namespace Omnipay\Common\Message;
/**
* Request Interface
*
* This interface class defines the standard functions that any Omnipay request
* interface needs to be able to provide. It is an extension of MessageInterface.
*
* @see MessageInterface
*/
interface RequestInterface extends MessageInterface
{
/**
* Initialize request with parameters
* @param array $parameters The parameters to send
*/
public function initialize(array $parameters = array());
/**
* Get all request parameters
*
* @return array
*/
public function getParameters();
/**
* Get the response to this request (if the request has been sent)
*
* @return ResponseInterface
*/
public function getResponse();
/**
* Send the request
*
* @return ResponseInterface
*/
public function send();
/**
* Send the request with specified data
*
* @param mixed $data The data to send
* @return ResponseInterface
*/
public function sendData($data);
}