4 * Encapsulates API request information
14 private $requestObject;
17 * Optional credentials associated with
24 * Transport binding for this request.
25 * Can be NVP, SOAP etc
32 * Holder for any binding specific info
35 private $bindingInfo = array();
37 public function __construct($requestObject, $bindingType) {
38 $this->requestObject = $requestObject;
39 $this->bindingType = $bindingType;
42 public function getRequestObject() {
43 return $this->requestObject;
46 public function getBindingType() {
47 return $this->bindingType;
50 public function getBindingInfo($name=NULL) {
52 return $this->bindingInfo[$name];
54 return $this->bindingInfo;
62 public function addBindingInfo($name, $value) {
63 $this->bindingInfo[$name] = $value;
66 public function setCredential($credential) {
67 $this->credential = $credential;
70 public function getCredential() {
71 return $this->credential;