LoggableAdapter.php 680 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Gedmo\Loggable\Mapping\Event;
  3. use Gedmo\Mapping\Event\AdapterInterface;
  4. /**
  5. * Doctrine event adapter interface
  6. * for Loggable behavior
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  10. */
  11. interface LoggableAdapter extends AdapterInterface
  12. {
  13. /**
  14. * Get default LogEntry class used to store the logs
  15. *
  16. * @return string
  17. */
  18. function getDefaultLogEntryClass();
  19. /**
  20. * Get new version number
  21. *
  22. * @param object $meta
  23. * @param object $object
  24. * @return integer
  25. */
  26. function getNewVersion($meta, $object);
  27. }