GTCondition.php 849 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. class GTCondition extends GTApiRequest{
  3. private $key;
  4. private $values;
  5. private $opt_type;
  6. public function getKey()
  7. {
  8. return $this->key;
  9. }
  10. public function setKey($key)
  11. {
  12. $this->key = $key;
  13. $this->apiParam["key"] = $key;
  14. }
  15. public function getValues()
  16. {
  17. return $this->values;
  18. }
  19. public function setValues($values)
  20. {
  21. $this->values = $values;
  22. }
  23. public function getOptType()
  24. {
  25. return $this->opt_type;
  26. }
  27. public function setOptType($opt_type)
  28. {
  29. $this->opt_type = $opt_type;
  30. $this->apiParam["opt_type"] = $opt_type;
  31. }
  32. public function getApiParam()
  33. {
  34. if ($this->values != null){
  35. $this->apiParam["values"] = $this->values;
  36. }
  37. return $this->apiParam;
  38. }
  39. }