AdapterInterface.php 813 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Gedmo\Mapping\Event;
  3. use Doctrine\Common\EventArgs;
  4. /**
  5. * Doctrine event adapter interface is used
  6. * to retrieve common functionality for Doctrine
  7. * events
  8. *
  9. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  10. * @package Gedmo.Mapping.Event
  11. * @subpackage AdapterInterface
  12. * @link http://www.gediminasm.org
  13. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  14. */
  15. interface AdapterInterface
  16. {
  17. /**
  18. * Set the eventargs
  19. *
  20. * @param EventArgs $args
  21. */
  22. function setEventArgs(EventArgs $args);
  23. /**
  24. * Get the name of domain object
  25. *
  26. * @return string
  27. */
  28. function getDomainObjectName();
  29. /**
  30. * Get the name of used manager for this
  31. * event adapter
  32. */
  33. function getManagerName();
  34. }