TestCase.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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\FirebaseRules;
  18. class TestCase extends \Google\Collection
  19. {
  20. protected $collection_key = 'functionMocks';
  21. /**
  22. * @var string
  23. */
  24. public $expectation;
  25. /**
  26. * @var string
  27. */
  28. public $expressionReportLevel;
  29. protected $functionMocksType = FunctionMock::class;
  30. protected $functionMocksDataType = 'array';
  31. /**
  32. * @var string
  33. */
  34. public $pathEncoding;
  35. /**
  36. * @var array
  37. */
  38. public $request;
  39. /**
  40. * @var array
  41. */
  42. public $resource;
  43. /**
  44. * @param string
  45. */
  46. public function setExpectation($expectation)
  47. {
  48. $this->expectation = $expectation;
  49. }
  50. /**
  51. * @return string
  52. */
  53. public function getExpectation()
  54. {
  55. return $this->expectation;
  56. }
  57. /**
  58. * @param string
  59. */
  60. public function setExpressionReportLevel($expressionReportLevel)
  61. {
  62. $this->expressionReportLevel = $expressionReportLevel;
  63. }
  64. /**
  65. * @return string
  66. */
  67. public function getExpressionReportLevel()
  68. {
  69. return $this->expressionReportLevel;
  70. }
  71. /**
  72. * @param FunctionMock[]
  73. */
  74. public function setFunctionMocks($functionMocks)
  75. {
  76. $this->functionMocks = $functionMocks;
  77. }
  78. /**
  79. * @return FunctionMock[]
  80. */
  81. public function getFunctionMocks()
  82. {
  83. return $this->functionMocks;
  84. }
  85. /**
  86. * @param string
  87. */
  88. public function setPathEncoding($pathEncoding)
  89. {
  90. $this->pathEncoding = $pathEncoding;
  91. }
  92. /**
  93. * @return string
  94. */
  95. public function getPathEncoding()
  96. {
  97. return $this->pathEncoding;
  98. }
  99. /**
  100. * @param array
  101. */
  102. public function setRequest($request)
  103. {
  104. $this->request = $request;
  105. }
  106. /**
  107. * @return array
  108. */
  109. public function getRequest()
  110. {
  111. return $this->request;
  112. }
  113. /**
  114. * @param array
  115. */
  116. public function setResource($resource)
  117. {
  118. $this->resource = $resource;
  119. }
  120. /**
  121. * @return array
  122. */
  123. public function getResource()
  124. {
  125. return $this->resource;
  126. }
  127. }
  128. // Adding a class alias for backwards compatibility with the previous class name.
  129. class_alias(TestCase::class, 'Google_Service_FirebaseRules_TestCase');