SomePagesController.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
  5. * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  6. *
  7. * Licensed under The MIT License
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  11. * @link https://cakephp.org CakePHP(tm) Project
  12. * @since 3.0.0
  13. * @license https://opensource.org/licenses/mit-license.php MIT License
  14. */
  15. namespace TestApp\Controller;
  16. use Cake\Controller\Controller;
  17. /**
  18. * SomePagesController class
  19. */
  20. class SomePagesController extends Controller
  21. {
  22. /**
  23. * display method
  24. *
  25. * @param mixed $page
  26. * @return void
  27. */
  28. public function display($page = null)
  29. {
  30. }
  31. /**
  32. * index method
  33. *
  34. * @return void
  35. */
  36. public function index(): bool
  37. {
  38. return true;
  39. }
  40. /**
  41. * Test method for returning responses.
  42. *
  43. * @return \Cake\Http\Response
  44. */
  45. public function responseGenerator()
  46. {
  47. return $this->response->withStringBody('new response');
  48. }
  49. protected function _fail()
  50. {
  51. }
  52. }