UsesFeature.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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\Testing;
  18. class UsesFeature extends \Google\Model
  19. {
  20. /**
  21. * The android:required value
  22. *
  23. * @var bool
  24. */
  25. public $isRequired;
  26. /**
  27. * The android:name value
  28. *
  29. * @var string
  30. */
  31. public $name;
  32. /**
  33. * The android:required value
  34. *
  35. * @param bool $isRequired
  36. */
  37. public function setIsRequired($isRequired)
  38. {
  39. $this->isRequired = $isRequired;
  40. }
  41. /**
  42. * @return bool
  43. */
  44. public function getIsRequired()
  45. {
  46. return $this->isRequired;
  47. }
  48. /**
  49. * The android:name value
  50. *
  51. * @param string $name
  52. */
  53. public function setName($name)
  54. {
  55. $this->name = $name;
  56. }
  57. /**
  58. * @return string
  59. */
  60. public function getName()
  61. {
  62. return $this->name;
  63. }
  64. }
  65. // Adding a class alias for backwards compatibility with the previous class name.
  66. class_alias(UsesFeature::class, 'Google_Service_Testing_UsesFeature');