ApiDataRow.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\SearchConsole;
  18. class ApiDataRow extends \Google\Collection
  19. {
  20. protected $collection_key = 'keys';
  21. public $clicks;
  22. public $ctr;
  23. public $impressions;
  24. /**
  25. * @var string[]
  26. */
  27. public $keys;
  28. public $position;
  29. public function setClicks($clicks)
  30. {
  31. $this->clicks = $clicks;
  32. }
  33. public function getClicks()
  34. {
  35. return $this->clicks;
  36. }
  37. public function setCtr($ctr)
  38. {
  39. $this->ctr = $ctr;
  40. }
  41. public function getCtr()
  42. {
  43. return $this->ctr;
  44. }
  45. public function setImpressions($impressions)
  46. {
  47. $this->impressions = $impressions;
  48. }
  49. public function getImpressions()
  50. {
  51. return $this->impressions;
  52. }
  53. /**
  54. * @param string[]
  55. */
  56. public function setKeys($keys)
  57. {
  58. $this->keys = $keys;
  59. }
  60. /**
  61. * @return string[]
  62. */
  63. public function getKeys()
  64. {
  65. return $this->keys;
  66. }
  67. public function setPosition($position)
  68. {
  69. $this->position = $position;
  70. }
  71. public function getPosition()
  72. {
  73. return $this->position;
  74. }
  75. }
  76. // Adding a class alias for backwards compatibility with the previous class name.
  77. class_alias(ApiDataRow::class, 'Google_Service_SearchConsole_ApiDataRow');