DuplicateBehavior.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. * For full copyright and license information, please see the LICENSE.txt
  9. * Redistributions of files must retain the above copyright notice.
  10. *
  11. * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  12. * @link https://cakephp.org CakePHP(tm) Project
  13. * @since 1.2.0
  14. * @license https://opensource.org/licenses/mit-license.php MIT License
  15. */
  16. namespace TestApp\Model\Behavior;
  17. use Cake\ORM\Behavior;
  18. /**
  19. * Test class for triggering duplicate method errors.
  20. */
  21. class DuplicateBehavior extends Behavior
  22. {
  23. protected array $_defaultConfig = [
  24. 'implementedFinders' => [
  25. 'children' => 'findChildren',
  26. ],
  27. 'implementedMethods' => [
  28. 'slugify' => 'slugify',
  29. ],
  30. ];
  31. public function findChildren(): void
  32. {
  33. }
  34. public function slugify(): void
  35. {
  36. }
  37. }