SluggableAdapter.php 728 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Gedmo\Sluggable\Mapping\Event;
  3. use Gedmo\Mapping\Event\AdapterInterface;
  4. /**
  5. * Doctrine event adapter interface
  6. * for Sluggable behavior
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @package Gedmo\Sluggable\Mapping\Event
  10. * @subpackage SluggableAdapter
  11. * @link http://www.gediminasm.org
  12. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  13. */
  14. interface SluggableAdapter extends AdapterInterface
  15. {
  16. /**
  17. * Loads the similar slugs
  18. *
  19. * @param object $object
  20. * @param object $meta
  21. * @param array $config
  22. * @param string $slug
  23. * @return array
  24. */
  25. function getSimilarSlugs($object, $meta, array $config, $slug);
  26. }