AccessLevel.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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\AccessContextManager;
  18. class AccessLevel extends \Google\Model
  19. {
  20. protected $basicType = BasicLevel::class;
  21. protected $basicDataType = '';
  22. protected $customType = CustomLevel::class;
  23. protected $customDataType = '';
  24. /**
  25. * @var string
  26. */
  27. public $description;
  28. /**
  29. * @var string
  30. */
  31. public $name;
  32. /**
  33. * @var string
  34. */
  35. public $title;
  36. /**
  37. * @param BasicLevel
  38. */
  39. public function setBasic(BasicLevel $basic)
  40. {
  41. $this->basic = $basic;
  42. }
  43. /**
  44. * @return BasicLevel
  45. */
  46. public function getBasic()
  47. {
  48. return $this->basic;
  49. }
  50. /**
  51. * @param CustomLevel
  52. */
  53. public function setCustom(CustomLevel $custom)
  54. {
  55. $this->custom = $custom;
  56. }
  57. /**
  58. * @return CustomLevel
  59. */
  60. public function getCustom()
  61. {
  62. return $this->custom;
  63. }
  64. /**
  65. * @param string
  66. */
  67. public function setDescription($description)
  68. {
  69. $this->description = $description;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getDescription()
  75. {
  76. return $this->description;
  77. }
  78. /**
  79. * @param string
  80. */
  81. public function setName($name)
  82. {
  83. $this->name = $name;
  84. }
  85. /**
  86. * @return string
  87. */
  88. public function getName()
  89. {
  90. return $this->name;
  91. }
  92. /**
  93. * @param string
  94. */
  95. public function setTitle($title)
  96. {
  97. $this->title = $title;
  98. }
  99. /**
  100. * @return string
  101. */
  102. public function getTitle()
  103. {
  104. return $this->title;
  105. }
  106. }
  107. // Adding a class alias for backwards compatibility with the previous class name.
  108. class_alias(AccessLevel::class, 'Google_Service_AccessContextManager_AccessLevel');