PlayerAuthRequest.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. namespace Mts\Request\V20140618;
  3. /**
  4. * Request of PlayerAuth
  5. *
  6. * @method string getResourceOwnerId()
  7. * @method string getResourceOwnerAccount()
  8. * @method string getOwnerAccount()
  9. * @method string getOwnerId()
  10. */
  11. class PlayerAuthRequest extends \RpcAcsRequest
  12. {
  13. /**
  14. * @var string
  15. */
  16. protected $method = 'POST';
  17. /**
  18. * Class constructor.
  19. */
  20. public function __construct()
  21. {
  22. parent::__construct(
  23. 'Mts',
  24. '2014-06-18',
  25. 'PlayerAuth',
  26. 'mts'
  27. );
  28. }
  29. /**
  30. * @param string $resourceOwnerId
  31. *
  32. * @return $this
  33. */
  34. public function setResourceOwnerId($resourceOwnerId)
  35. {
  36. $this->requestParameters['ResourceOwnerId'] = $resourceOwnerId;
  37. $this->queryParameters['ResourceOwnerId'] = $resourceOwnerId;
  38. return $this;
  39. }
  40. /**
  41. * @param string $resourceOwnerAccount
  42. *
  43. * @return $this
  44. */
  45. public function setResourceOwnerAccount($resourceOwnerAccount)
  46. {
  47. $this->requestParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  48. $this->queryParameters['ResourceOwnerAccount'] = $resourceOwnerAccount;
  49. return $this;
  50. }
  51. /**
  52. * @param string $ownerAccount
  53. *
  54. * @return $this
  55. */
  56. public function setOwnerAccount($ownerAccount)
  57. {
  58. $this->requestParameters['OwnerAccount'] = $ownerAccount;
  59. $this->queryParameters['OwnerAccount'] = $ownerAccount;
  60. return $this;
  61. }
  62. /**
  63. * @param string $ownerId
  64. *
  65. * @return $this
  66. */
  67. public function setOwnerId($ownerId)
  68. {
  69. $this->requestParameters['OwnerId'] = $ownerId;
  70. $this->queryParameters['OwnerId'] = $ownerId;
  71. return $this;
  72. }
  73. }