No Description

UmengUappRetentionInfo.class.php 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
  3. include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
  4. class UmengUappRetentionInfo extends SDKDomain {
  5. private $date;
  6. /**
  7. * @return 统计日期
  8. */
  9. public function getDate() {
  10. return $this->date;
  11. }
  12. /**
  13. * 设置统计日期
  14. * @param String $date
  15. * 参数示例:<pre></pre>
  16. * 此参数必填 */
  17. public function setDate( $date) {
  18. $this->date = $date;
  19. }
  20. private $totalInstallUser;
  21. /**
  22. * @return 当日安装用户数
  23. */
  24. public function getTotalInstallUser() {
  25. return $this->totalInstallUser;
  26. }
  27. /**
  28. * 设置当日安装用户数
  29. * @param Integer $totalInstallUser
  30. * 参数示例:<pre></pre>
  31. * 此参数必填 */
  32. public function setTotalInstallUser( $totalInstallUser) {
  33. $this->totalInstallUser = $totalInstallUser;
  34. }
  35. private $retentionRate;
  36. /**
  37. * @return 相对之后几日的留存用户数,安装日期到今日之间7天(每天),14天后,30天后留存用户占比(不包含今日)
  38. */
  39. public function getRetentionRate() {
  40. return $this->retentionRate;
  41. }
  42. /**
  43. * 设置相对之后几日的留存用户数,安装日期到今日之间7天(每天),14天后,30天后留存用户占比(不包含今日)
  44. * @param array include @see Double[] $retentionRate
  45. * 参数示例:<pre></pre>
  46. * 此参数必填 */
  47. public function setRetentionRate( $retentionRate) {
  48. $this->retentionRate = $retentionRate;
  49. }
  50. private $stdResult;
  51. public function setStdResult($stdResult) {
  52. $this->stdResult = $stdResult;
  53. if (array_key_exists ( "date", $this->stdResult )) {
  54. $this->date = $this->stdResult->{"date"};
  55. }
  56. if (array_key_exists ( "totalInstallUser", $this->stdResult )) {
  57. $this->totalInstallUser = $this->stdResult->{"totalInstallUser"};
  58. }
  59. if (array_key_exists ( "retentionRate", $this->stdResult )) {
  60. $this->retentionRate = $this->stdResult->{"retentionRate"};
  61. }
  62. }
  63. private $arrayResult;
  64. public function setArrayResult($arrayResult) {
  65. $this->arrayResult = $arrayResult;
  66. if (array_key_exists ( "date", $this->arrayResult )) {
  67. $this->date = $arrayResult['date'];
  68. }
  69. if (array_key_exists ( "totalInstallUser", $this->arrayResult )) {
  70. $this->totalInstallUser = $arrayResult['totalInstallUser'];
  71. }
  72. if (array_key_exists ( "retentionRate", $this->arrayResult )) {
  73. $this->retentionRate = $arrayResult['retentionRate'];
  74. }
  75. }
  76. }
  77. ?>