| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- declare(strict_types=1);
- namespace TestApp\Controller;
- use Cake\Event\EventInterface;
- use Cake\ORM\Table;
- /**
- * TestController class
- */
- class TestController extends ControllerTestAppController
- {
- /**
- * Theme property
- *
- * @var string
- */
- public $theme = 'Foo';
- /**
- * modelClass property
- *
- * @var string
- */
- protected ?string $modelClass = 'Comments';
- /**
- * beforeFilter handler
- *
- * @return \Cake\Http\Response|null|void
- */
- public function beforeFilter(EventInterface $event)
- {
- }
- /**
- * index method
- *
- * @param mixed $testId
- * @param mixed $testTwoId
- * @return void
- */
- public function index($testId, $testTwoId): void
- {
- $this->request = $this->request->withParsedBody([
- 'testId' => $testId,
- 'test2Id' => $testTwoId,
- ]);
- }
- /**
- * view method
- *
- * @param mixed $testId
- * @param mixed $testTwoId
- * @return void
- */
- public function view($testId, $testTwoId): void
- {
- $this->request = $this->request->withParsedBody([
- 'testId' => $testId,
- 'test2Id' => $testTwoId,
- ]);
- }
- /**
- * @param mixed $passed
- */
- public function reflection($passed, Table $table)
- {
- }
- /**
- * @return \Cake\Http\Response
- */
- public function returner()
- {
- return $this->response->withStringBody('I am from the controller.');
- }
- /**
- * @return \Cake\Http\Response
- */
- public function willCauseException(): string
- {
- return '';
- }
- // phpcs:disable
- protected function protected_m()
- {
- }
- private function private_m()
- {
- }
- public function _hidden()
- {
- }
- // phpcs:enable
- public function admin_add(): void
- {
- }
- }
|