Test.php 560 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace EasySwoole\HttpAnnotation\Tests\TestController;
  3. class Test
  4. {
  5. protected $string;
  6. protected $array;
  7. public function __construct($string, $array)
  8. {
  9. $this->string = $string;
  10. $this->array = $array;
  11. }
  12. /**
  13. * @return mixed
  14. */
  15. public function getArray()
  16. {
  17. return $this->array;
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. public function getString()
  23. {
  24. return $this->string;
  25. }
  26. public function index()
  27. {
  28. return 'inject test class -> index';
  29. }
  30. }