| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- declare(strict_types=1);
- namespace TestApp\Model\Behavior;
- use Cake\ORM\Behavior;
- class Test3Behavior extends Behavior
- {
- /**
- * Test for event bindings.
- */
- public function beforeFind(): void
- {
- }
- /**
- * Test finder
- */
- public function findFoo(): void
- {
- }
- /**
- * Test method
- */
- public function doSomething(): void
- {
- }
- /**
- * Test method to ensure it is ignored as a callable method.
- */
- public function verifyConfig(): void
- {
- parent::verifyConfig();
- }
- /**
- * implementedEvents
- *
- * This class does pretend to implement beforeFind
- *
- * @return array<string, mixed>
- */
- public function implementedEvents(): array
- {
- return ['Model.beforeFind' => 'beforeFind'];
- }
- /**
- * implementedFinders
- */
- public function implementedFinders(): array
- {
- }
- /**
- * implementedMethods
- */
- public function implementedMethods(): array
- {
- }
- /**
- * Expose protected method for testing
- *
- * Since this is public - it'll show up as callable which is a side-effect
- *
- * @return array
- */
- public function testReflectionCache(): array
- {
- return $this->_reflectionCache();
- }
- }
|