VerifierRequest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. class VerifierRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/verify";
  4. private $file;
  5. private $showImg;
  6. function getUrl() {
  7. return self::REQUEST_URL;
  8. }
  9. function getHttpParamers() {
  10. $paramSwitcher = ParamSwitcher::instanceParam();
  11. $paramSwitcher->addParam('file', $this->file);
  12. $paramSwitcher->addParam('showImg', $this->showImg);
  13. $httpParameters = HttpParameter::httpPostParamer();
  14. $httpParameters->setParams($paramSwitcher->getParams());
  15. return $httpParameters;
  16. }
  17. /**
  18. * @return mixed
  19. */
  20. public function getFile()
  21. {
  22. return $this->file;
  23. }
  24. /**
  25. * @param mixed $file
  26. */
  27. public function setFile($file)
  28. {
  29. $this->file = $file;
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function getShowImg()
  35. {
  36. return $this->showImg;
  37. }
  38. /**
  39. * @param mixed $showImg
  40. */
  41. public function setShowImg($showImg)
  42. {
  43. $this->showImg = $showImg;
  44. }
  45. }