EkomiRequestPutComment

Class PutComment.

Defined (1)

The class is defined in the following location(s).

/includes/libraries/Ekomi/Request/PutComment.php  
  1. class PutComment extends AbstractRequest{ 
  2. private $orderId; 
  3. private $update = 'replace'; 
  4. private $comment = ''; 
  5.  
  6. public function getName() { 
  7. return 'putComment'; 
  8.  
  9. public function getQuery($type='CURL') { 
  10. $query = array( 
  11. 'auth' => '',  
  12. 'version' => $this->getVersion(),  
  13. 'order_id' => $this->getOrderId(),  
  14. 'comment' => $this->getComment(),  
  15. 'update' => $this->getUpdate(),  
  16. 'charset' => $this->getCharset() 
  17. ); 
  18.  
  19. return $query; 
  20.  
  21. /** 
  22. * @return mixed 
  23. */ 
  24. public function getOrderId() 
  25. return $this->orderId; 
  26.  
  27. /** 
  28. * @param mixed $orderId 
  29. * @return PutComment 
  30. */ 
  31. public function setOrderId($orderId) 
  32. $this->orderId = $orderId; 
  33. return $this; 
  34.  
  35. /** 
  36. * @return string 
  37. */ 
  38. public function getUpdate() 
  39. return $this->update; 
  40.  
  41. /** 
  42. * @param string $update 
  43. * @return PutComment 
  44. */ 
  45. public function setUpdate($update) 
  46. $this->update = $update; 
  47. return $this; 
  48.  
  49. /** 
  50. * @return string 
  51. */ 
  52. public function getComment() 
  53. return $this->comment; 
  54.  
  55. /** 
  56. * @param string $comment 
  57. * @return PutComment 
  58. */ 
  59. public function setComment($comment) 
  60. $this->comment = $comment; 
  61. return $this; 
  62.