Loggable.php 797 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Gedmo\Loggable;
  3. /**
  4. * This interface is not necessary but can be implemented for
  5. * Domain Objects which in some cases needs to be identified as
  6. * Loggable
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  10. */
  11. interface Loggable
  12. {
  13. // this interface is not necessary to implement
  14. /**
  15. * @gedmo:Loggable
  16. * to mark the class as loggable use class annotation @gedmo:Loggable
  17. * this object will contain now a history
  18. * available options:
  19. * logEntryClass="My\LogEntryObject" (optional) defaultly will use internal object class
  20. * example:
  21. *
  22. * @gedmo:Loggable(logEntryClass="My\LogEntryObject")
  23. * class MyEntity
  24. */
  25. }